Home All Groups Group Topic Archive Search About

Unable to get data in sql 2005 ok in sql 2000

Author
23 Dec 2005 10:37 AM
den 2005
Hi everybody,
   happy Holidays to you all.  I developed a windows application that
connects to Sql server 2000, using windows authentication and it works, able
to retrive and other data process. But when I used it on Sql Server 2005
Express, it was unable to retrive data. What is wrong with it? How can I
fixed this?

Connecting String at 2000:

"integrated security=SSPI;data source=localhost;persist security
info=False;initial

catalog=Genesis;"

Connection String at 2005: 

"integrated security=SSPI;data source=RITS-DENNIS\SQLEXPRESS;persist security

info=False;initial catalog=Genesis;"

"user id=guest;password=guest123;data source=RITS-DENNIS\SQLEXPRESS;persist
security info=False;initial catalog=Genesis;"


Thanks in Advanced.

den2005
--
MCP Year 2005, Philippines

Author
23 Dec 2005 10:59 AM
Rogas69
Hi,
but what is the error message? you can't connect to the database at all?
have you configured it to allow network access? its done via 'Surface Area
Configuration' utility. Someone sait that you might have to enable Browser
service

Peter
Author
27 Dec 2005 12:05 AM
den 2005
Thanks for reply, Peter.
I tested and able to connect but no records is retrived.
What do you mean via 'Surface Area Configuration'? What is that?
I would try to start the Browser service. Can this Browser service be
activated inside the codes (.Net)?

Dennis

--
MCP Year 2005, Philippines


Show quote
"Rogas69" wrote:

> Hi,
> but what is the error message? you can't connect to the database at all?
> have you configured it to allow network access? its done via 'Surface Area
> Configuration' utility. Someone sait that you might have to enable Browser
> service
>
> Peter
>
>
>
Author
3 Jan 2006 12:19 PM
Rogas69
Hi,
The SAC is in Configuration Tools subfolder in Microsoft SQL Servero 2005
folder in Programs menu on your machine. By default SQL Server 2k5 denies
network access to itself. Also, when you are using '.' or '(local)' syntax
for server in connection string, SQL Server uses by default named pipes,
otherwise it may try to run TCP/IP.
But tell me what exception do you catch? Timeout? Acces denied?

Peter
Author
23 Dec 2005 11:20 AM
SriSamp
Usually, I've seen that the TCP/IP protocol is disabled by default. You can
enable it by using the SQL Server Configuration Manager tool. Also, note
that by default local connections are allowed. If you need remote
connections to SQL Server 2005, you will also need to enable that using the
SAC tool.
Show quote
"den 2005" <den2***@discussions.microsoft.com> wrote in message
news:AD4A8CC8-EB8F-4673-99E2-FE5F51A283AD@microsoft.com...
> Hi everybody,
>   happy Holidays to you all.  I developed a windows application that
> connects to Sql server 2000, using windows authentication and it works,
> able
> to retrive and other data process. But when I used it on Sql Server 2005
> Express, it was unable to retrive data. What is wrong with it? How can I
> fixed this?
>
> Connecting String at 2000:
>
> "integrated security=SSPI;data source=localhost;persist security
> info=False;initial
>
> catalog=Genesis;"
>
> Connection String at 2005:
>
> "integrated security=SSPI;data source=RITS-DENNIS\SQLEXPRESS;persist
> security
>
> info=False;initial catalog=Genesis;"
>
> "user id=guest;password=guest123;data
> source=RITS-DENNIS\SQLEXPRESS;persist
> security info=False;initial catalog=Genesis;"
>
>
> Thanks in Advanced.
>
> den2005
> --
> MCP Year 2005, Philippines
Author
27 Dec 2005 12:07 AM
den 2005
Thanks for reply, SriSamp.

Why TCP/IP protocol is needed? The database and the application will be on
same machine. SAC tool? What is that?

Dennis

--
MCP Year 2005, Philippines


Show quote
"SriSamp" wrote:

> Usually, I've seen that the TCP/IP protocol is disabled by default. You can
> enable it by using the SQL Server Configuration Manager tool. Also, note
> that by default local connections are allowed. If you need remote
> connections to SQL Server 2005, you will also need to enable that using the
> SAC tool.
> --
> HTH,
> SriSamp
> Email: sris***@gmail.com
> Blog: http://blogs.sqlxml.org/srinivassampath
> URL: http://www32.brinkster.com/srisamp
>
> "den 2005" <den2***@discussions.microsoft.com> wrote in message
> news:AD4A8CC8-EB8F-4673-99E2-FE5F51A283AD@microsoft.com...
> > Hi everybody,
> >   happy Holidays to you all.  I developed a windows application that
> > connects to Sql server 2000, using windows authentication and it works,
> > able
> > to retrive and other data process. But when I used it on Sql Server 2005
> > Express, it was unable to retrive data. What is wrong with it? How can I
> > fixed this?
> >
> > Connecting String at 2000:
> >
> > "integrated security=SSPI;data source=localhost;persist security
> > info=False;initial
> >
> > catalog=Genesis;"
> >
> > Connection String at 2005:
> >
> > "integrated security=SSPI;data source=RITS-DENNIS\SQLEXPRESS;persist
> > security
> >
> > info=False;initial catalog=Genesis;"
> >
> > "user id=guest;password=guest123;data
> > source=RITS-DENNIS\SQLEXPRESS;persist
> > security info=False;initial catalog=Genesis;"
> >
> >
> > Thanks in Advanced.
> >
> > den2005
> > --
> > MCP Year 2005, Philippines
>
>
>
Author
27 Dec 2005 1:05 AM
den 2005
Is there any difference if I used windows authentication or any user to
enter data values to a table otehr than 'sa' account, and this data can be
viewed and change using any authenticated account?

dennis
--
MCP Year 2005, Philippines


Show quote
"den 2005" wrote:

> Thanks for reply, SriSamp.
>
> Why TCP/IP protocol is needed? The database and the application will be on
> same machine. SAC tool? What is that?
>
> Dennis
>
> --
> MCP Year 2005, Philippines
>
>
> "SriSamp" wrote:
>
> > Usually, I've seen that the TCP/IP protocol is disabled by default. You can
> > enable it by using the SQL Server Configuration Manager tool. Also, note
> > that by default local connections are allowed. If you need remote
> > connections to SQL Server 2005, you will also need to enable that using the
> > SAC tool.
> > --
> > HTH,
> > SriSamp
> > Email: sris***@gmail.com
> > Blog: http://blogs.sqlxml.org/srinivassampath
> > URL: http://www32.brinkster.com/srisamp
> >
> > "den 2005" <den2***@discussions.microsoft.com> wrote in message
> > news:AD4A8CC8-EB8F-4673-99E2-FE5F51A283AD@microsoft.com...
> > > Hi everybody,
> > >   happy Holidays to you all.  I developed a windows application that
> > > connects to Sql server 2000, using windows authentication and it works,
> > > able
> > > to retrive and other data process. But when I used it on Sql Server 2005
> > > Express, it was unable to retrive data. What is wrong with it? How can I
> > > fixed this?
> > >
> > > Connecting String at 2000:
> > >
> > > "integrated security=SSPI;data source=localhost;persist security
> > > info=False;initial
> > >
> > > catalog=Genesis;"
> > >
> > > Connection String at 2005:
> > >
> > > "integrated security=SSPI;data source=RITS-DENNIS\SQLEXPRESS;persist
> > > security
> > >
> > > info=False;initial catalog=Genesis;"
> > >
> > > "user id=guest;password=guest123;data
> > > source=RITS-DENNIS\SQLEXPRESS;persist
> > > security info=False;initial catalog=Genesis;"
> > >
> > >
> > > Thanks in Advanced.
> > >
> > > den2005
> > > --
> > > MCP Year 2005, Philippines
> >
> >
> >

AddThis Social Bookmark Button