Showing posts with label instance. Show all posts
Showing posts with label instance. Show all posts

Thursday, March 22, 2012

ASP ADO SQL Time Out

I am programing an asp web page using ado/sql. My query is timing
out. I was doing just fine when I wasnt doing an inner join. I test
an instance of the query (Using the inner join) in sql query and it
ran fine, but when I did the query in the web page it times out.
Any Suggestions
thanks
Kirk"Kirk" <Kirk.Mccann@.NAV-INTERNATIONAL.com> wrote in message
news:eeff0422.0401151918.48768a14@.posting.google.c om...
> I am programing an asp web page using ado/sql. My query is timing
> out. I was doing just fine when I wasnt doing an inner join. I test
> an instance of the query (Using the inner join) in sql query and it
> ran fine, but when I did the query in the web page it times out.
> Any Suggestions
> thanks
> Kirk

You don't give much information, but if your query works fine in QA, then I
would use Profiler to verify that the ASP page is sending the same query to
the server. Profiler should also show you how long the query takes to
execute on the server, so it may help to narrow the problem down to the ASP
side or the database side.

Simon

Tuesday, March 20, 2012

ASP - Connection to second instance

I have a second instance set up for a sql server. I'm going
crazy trying to determine the syntax for the connection string
for my ASP program.
Please help
Mindy Jeanne LeslieUsually it would be something like:
...data source=SERVERNAME\INSTANCENAME; user id=.........
Regards.
"Mindy Leslie via SQLMonster.com" wrote:
> I have a second instance set up for a sql server. I'm going
> crazy trying to determine the syntax for the connection string
> for my ASP program.
> Please help
> Mindy Jeanne Leslie
>

ASP - Connection to second instance

I have a second instance set up for a sql server. I'm going
crazy trying to determine the syntax for the connection string
for my ASP program.
Please help
Mindy Jeanne Leslie
Usually it would be something like:
...data source=SERVERNAME\INSTANCENAME; user id=.........
Regards.
"Mindy Leslie via droptable.com" wrote:

> I have a second instance set up for a sql server. I'm going
> crazy trying to determine the syntax for the connection string
> for my ASP program.
> Please help
> Mindy Jeanne Leslie
>

ASP - Connection to second instance

I have a second instance set up for a sql server. I'm going
crazy trying to determine the syntax for the connection string
for my ASP program.
Please help
Mindy Jeanne LeslieUsually it would be something like:
...data source=SERVERNAME\INSTANCENAME; user id=.........
Regards.
"Mindy Leslie via droptable.com" wrote:

> I have a second instance set up for a sql server. I'm going
> crazy trying to determine the syntax for the connection string
> for my ASP program.
> Please help
> Mindy Jeanne Leslie
>

Thursday, March 8, 2012

AS2005 Retreiving Data Problem

Hi All,

I'm having problem retreiving data from a AS2005.

I'm using a named instance, called Desktop126\SQL05

This code is being used:

using adomdnet = Microsoft.AnalysisServices.AdomdClient;

...

System.Text.StringBuilder result = new System.Text.StringBuilder();

using (adomdnet.AdomdConnection conn = new AdomdConnection("Data Source=Desktop126\\SQL05;Catalog=BuypassDW;Integrated Security=SSPI; ConnectTo=default")){

conn.Open();

//Create a command, using this connection

adomdnet.AdomdCommand cmd = conn.CreateCommand();

cmd.CommandText = @."

SELECT

{[Transactions Types].[ID].[All].Children} ON columns,

{[Merchants].[l Merchant Id].&[236553]} ON ROWS

FROM [Buypass DW1] WHERE( [Time].[Year].[2005])";

//Execute the query, returning a cellset

adomdnet.CellSet cs = cmd.ExecuteCellSet(); -- Fails with error:

// Either the user, DomainName\UserName, does not have access to the BuypassDW database, or the database does not exist.

conn.Close();

result.Append("\t");

adomdnet.TupleCollection tuplesOnColumns = cs.Axes[0].Set.Tuples;

foreach (adomdnet.Tuple column in tuplesOnColumns)

{

result.Append(column.Members[0].Caption + "\t");

}

result.AppendLine();

//Output the row captions from the second axis and cell data

//Note that this procedure assumes a two-dimensional cellset

adomdnet.TupleCollection tuplesOnRows = cs.Axes[1].Set.Tuples;

for (int row = 0; row < tuplesOnRows.Count; row++)

{

result.Append(tuplesOnRows[row].Members[0].Caption + "\t");

for (int col = 0; col < tuplesOnColumns.Count; col++)

{

result.Append(cs.Cells[col, row].FormattedValue + "\t");

}

result.AppendLine();

}

conn.Close();

} // using connection

}

Any idea why this is failing, the user has permissionto to access the source database,

in AS the datasource has the follwoing value for impersonation info ( AS2005-->dataource-->property)

ImpersonateCurrentUser.

Also in the AS2005 service the DomainName\UserName is being added .

Any hlep will be appreciated.

Thanks.

Abdu

Looks like you havent granted your users access to Analysis Services database.

Create a new role in BypassDW database, add your domain\user to the new role and grant the role DB admin rights. See if user can issue a query.

If everything works, change your role permissions to allow new role read only access to the cubes in the database.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.