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

Thursday, March 29, 2012

Can we find the list of filenames associated with a DB using VDI ?

Hi all,
I want to find the list of filenames associated with the SQL server instance programmatically. As VDI is concerned with taking backup of SQL server. Can we find the list of filenames associated with a DB using VDI ? or Is there any other way to know filenames?

Thanks in Advance,
Ram

You can always execute sp_helpfile in a database to find the files for that database.

Or select * from sys.database_files

-Sue

Can we find the list of filenames associated with a DB using VDI ?

Hi all,
I want to find the list of filenames associated with the SQL server instance programmatically. As VDI is concerned with taking backup of SQL server. Can we find the list of filenames associated with a DB using VDI ? or Is there any other way to know filenames?

Thanks in Advance,
Ram

You can always execute sp_helpfile in a database to find the files for that database.

Or select * from sys.database_files

-Sue

Tuesday, March 27, 2012

can we connect?

can we connect named instance through IP like in the network utility I just
defined the IP of the server where the named instance installed and define
the port...
Client Netowork Utility > Alias >
Alias: MyServer
Server: 209.45.23.55
Port : 1434
Protocol: TCP/IP
any thing else I need to do for connecting this... I did the above stuff but
I had failed to connect but why I can connect the default instance... please
guide me..
Thanks and I would highly appreciate if your prompt reply
thanks and have a great day
Hi,
Open the SQL Server error log under the folder
SQL_Server_installation_path>X\MSSQL$instance_name \LOG folder to make sure
that the SQL Server named instance runs well and to find the TCP port which
this named instance is listening.
As well as using Server network utility verify TCP/IP protocol is enabled.
Get the SQL Server name from Error log and use that name to connect from
query analyzer
Thanks
Hari
SQL Server MVP
"Rogers" <Rogers@.discussions.microsoft.com> wrote in message
news:DC15100C-5AC0-4C51-9CA3-8527DBF3DC23@.microsoft.com...
> can we connect named instance through IP like in the network utility I
> just
> defined the IP of the server where the named instance installed and define
> the port...
> Client Netowork Utility > Alias >
> Alias: MyServer
> Server: 209.45.23.55
> Port : 1434
> Protocol: TCP/IP
> any thing else I need to do for connecting this... I did the above stuff
> but
> I had failed to connect but why I can connect the default instance...
> please
> guide me..
> Thanks and I would highly appreciate if your prompt reply
> thanks and have a great day
>
|||First of all Hari, thanks for your reply... I can easily connect the named
instance on that same machine ... I am trying to connect that named instance
through my client machine and facing this problem...
"Hari Prasad" wrote:

> Hi,
> Open the SQL Server error log under the folder
> SQL_Server_installation_path>X\MSSQL$instance_nam e\LOG folder to make sure
> that the SQL Server named instance runs well and to find the TCP port which
> this named instance is listening.
> As well as using Server network utility verify TCP/IP protocol is enabled.
> Get the SQL Server name from Error log and use that name to connect from
> query analyzer
> Thanks
> Hari
> SQL Server MVP
>
> "Rogers" <Rogers@.discussions.microsoft.com> wrote in message
> news:DC15100C-5AC0-4C51-9CA3-8527DBF3DC23@.microsoft.com...
>
>

Can we change the name of the instance ..

Can we change the name of the instance (SomeSQLInstance1, Some SQLInstance2) to be "SomeSQLStdInstance" while upgrading to SQL 2005 from MSDE 2k or SQL 2000?

Yes. You can change the name of an instance as long as the server is not clustered. For more information, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/instsql/in_afterinstall_5r8f.asp

Thanks

|||

hi,

Rubal Jain wrote:

Yes. You can change the name of an instance as long as the server is not clustered. For more information, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/instsql/in_afterinstall_5r8f.asp

the feature you reported is only able to resync the server name to a SQL Server instance and not to just "rename" an installed instance..

if you installed a local named instance of SQLExpress, usually named (Local)\SQLExpress, you can not rename it to (Local)\AndreaSQLX or the like...

to "rename" an instance you have to uninstall it and reinstall it..

regards

Wednesday, March 7, 2012

Can SQL Server 2005 Reporting Services run against/on a SQL Server 2000 instance?

I was wondering SQL Server 2005 Reporting Services can run against/on a SQL Server 2000 database/instance?

Thanks,

Michael

Yes, for both metadata (the Report Server database) as well as report data.|||

Is there anything that I should know about when installing the SQL Server 2005 Reporting services? Is there any special requirements? Are there any special requirements when upgrading from SQL Server 2000 Reporting Services to SQL Server 2005 Reporting Services?

I do appreciate the help and advice. Google unfortunately has not turned up any answers for me.

Thanks,

Michael

|||TechNet did a support webcast on Upgrading SQL Server 2005 Reporting Services couple of days ago. You can download it from

http://support.microsoft.com/default.aspx?scid=kb;en-us;913930

|||

Thank you so much. I appreciate the help. This solves my problem.

Michael

Saturday, February 25, 2012

Can Sql 2000 and 2005 express work together?

I have a server (win server 2003) that is running Symantec Backup Exec for backups. I found that this soft uses an SQL server 2000 instance to keep his data... The problem is that I developed an application in asp.net (with VS2003) that use an SQL server 2005 express database. What I want to know is if I install SQL server 2005 express, is the backup will still work? I mean that the 2005 express wont upgrade sql 2000? What do I have to do to make it works?

hi,

SQL Server 2000 (including MSDE) and SQL Server 2005 (including SQLExpress) cna be installed "side by side"...

you can install up to 16 different instances per box, and each instance will maintain it's own binaries and registry settings separated from all other instances.. even at different service pack levels..

obviously you have not to mismatch instance's names.. only 1 instance per box can be the "default" instance, known as "ComputerName" or "." or "(Local)" (the last 2 only for local connections), where all the other instances have to be "named" instances, known as "ComputerName\InstanceName" or ".\InstanceName" or "(Local)\InstanceName" ... further info at http://msdn2.microsoft.com/en-us/library/ms143547.aspx

a little "note" should be mentioned about shared components.. this binaries are actually shared among all instances of the same code base.. so all 2000 related shared binaries will be shared among all 2000 instances, where 2005 shared components will be shared with all 2005 instances, at the higher service pack level..

another "side note".. and this is COM related.. COM components do not allow "side by side" implementation, so that SQL Server 2005 installs some of them at the 2005 edition level.. and SQL Server 2000 will "inherit" those components.. think about SQL-DMO and the like, but you should not be interested with that as 2005 versions are downwards compatible...

regards

|||Thanks a lot!

Sunday, February 19, 2012

can see sql2k sp3, but cannot connect?

With Enterprise manager, I can see a remote sql 2000 sp3 instance. I can al
so
see that port 1433 is open.
But, when I try to connect to it, I get the connection could not be
estiablished.
sql server does not exist or access denied.
I have pretty much all the port except for 1433 tcp and udp blocked.
How can I troubleshoot getting this connected. It is located on my local
network - so it is not a connection problem.
--
Thanks in advance, Les CaudleI think it was a name resolution problem, with so few ports open.
When I created a registration by ip address rather than name, it connected
immediately.
Confusing that the name showed up in Enterprise Manager. Would be nice if i
t
would automatically try to use just the ip (which it must know, as it can se
e
it).
On Wed, 18 Aug 2004 19:17:14 -0500, Les Caudle <very@.tiredofspam.com> wrote:

>With Enterprise manager, I can see a remote sql 2000 sp3 instance. I can a
lso
>see that port 1433 is open.
>But, when I try to connect to it, I get the connection could not be
>estiablished.
>sql server does not exist or access denied.
>I have pretty much all the port except for 1433 tcp and udp blocked.
>How can I troubleshoot getting this connected. It is located on my local
>network - so it is not a connection problem.

can see sql2k sp3, but cannot connect?

With Enterprise manager, I can see a remote sql 2000 sp3 instance. I can also
see that port 1433 is open.
But, when I try to connect to it, I get the connection could not be
estiablished.
sql server does not exist or access denied.
I have pretty much all the port except for 1433 tcp and udp blocked.
How can I troubleshoot getting this connected. It is located on my local
network - so it is not a connection problem.
Thanks in advance, Les Caudle
I think it was a name resolution problem, with so few ports open.
When I created a registration by ip address rather than name, it connected
immediately.
Confusing that the name showed up in Enterprise Manager. Would be nice if it
would automatically try to use just the ip (which it must know, as it can see
it).
On Wed, 18 Aug 2004 19:17:14 -0500, Les Caudle <very@.tiredofspam.com> wrote:

>With Enterprise manager, I can see a remote sql 2000 sp3 instance. I can also
>see that port 1433 is open.
>But, when I try to connect to it, I get the connection could not be
>estiablished.
>sql server does not exist or access denied.
>I have pretty much all the port except for 1433 tcp and udp blocked.
>How can I troubleshoot getting this connected. It is located on my local
>network - so it is not a connection problem.

Tuesday, February 14, 2012

Can one instance listen on multi IP Addresses?

Hi Everybody,
Is it possible to configure one virtual SQL server named instance to listen
on multi IP Address those additional IP Addresses associate with different
virtual SQL network name?
At the result like for example: SQL Server 2005 EE installed on (Windows
2003 64 bit OS cluster server) named instance SQL-V01\test1, it listen on IP
172.11.1.10. And it also should listens on IP 172.11.1.11, virtual network
name is SQL-V02\test1 as well as IP 172.11.1.12, virtual network name is
SQL-V03\test1.
Regards!
-Chen
You can indeed add extra IPs. We do it to add a backup network into the mix,
works great.
Now for the extra network name, you can add a name but I honestly don't know
how SQL will answer on it. SQL is configured for only one.
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://msmvps.com/clustering - Blog
http://www.clusterhelp.com - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
"Chen" <Chen@.discussions.microsoft.com> wrote in message
news:E8A70912-0AAD-4E78-9F5A-2E32C7802D97@.microsoft.com...
> Hi Everybody,
> Is it possible to configure one virtual SQL server named instance to
> listen
> on multi IP Address those additional IP Addresses associate with different
> virtual SQL network name?
> At the result like for example: SQL Server 2005 EE installed on (Windows
> 2003 64 bit OS cluster server) named instance SQL-V01\test1, it listen on
> IP
> 172.11.1.10. And it also should listens on IP 172.11.1.11, virtual network
> name is SQL-V02\test1 as well as IP 172.11.1.12, virtual network name is
> SQL-V03\test1.
> Regards!
> -Chen
>
|||Thanks for quick response. Can you indicate some article I can follow to add
second IP Address in one instance?
"Rodney R. Fournier [MVP]" wrote:

> You can indeed add extra IPs. We do it to add a backup network into the mix,
> works great.
> Now for the extra network name, you can add a name but I honestly don't know
> how SQL will answer on it. SQL is configured for only one.
> Cheers,
> Rodney R. Fournier
> MVP - Windows Server - Clustering
> http://www.nw-america.com - Clustering Website
> http://msmvps.com/clustering - Blog
> http://www.clusterhelp.com - Cluster Training
> ClusterHelp.com is a Microsoft Certified Gold Partner
>
> "Chen" <Chen@.discussions.microsoft.com> wrote in message
> news:E8A70912-0AAD-4E78-9F5A-2E32C7802D97@.microsoft.com...
>
>
|||Right-click add resource. IP Address. Dependencies none. Then make the
network name for SQL dependent on it, if it's mission critical to also have
this second IP online.
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://msmvps.com/clustering - Blog
http://www.clusterhelp.com - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
"Chen" <Chen@.discussions.microsoft.com> wrote in message
news:A214ED7F-C0A1-4D4A-A8B2-AB2FEFCFA6F3@.microsoft.com...[vbcol=seagreen]
> Thanks for quick response. Can you indicate some article I can follow to
> add
> second IP Address in one instance?
> "Rodney R. Fournier [MVP]" wrote:
|||It is much easier to set a network name at the DNS level rather than the
machine lever. Use a SRV record type in DNS to map a network name to an
IPaddress/port number combination.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Rodney R. Fournier [MVP]" <rod@.die.spam.die.nw-america.com> wrote in
message news:e9Kpm6V7GHA.4288@.TK2MSFTNGP02.phx.gbl...
> Right-click add resource. IP Address. Dependencies none. Then make the
> network name for SQL dependent on it, if it's mission critical to also
> have this second IP online.
> Cheers,
> Rodney R. Fournier
> MVP - Windows Server - Clustering
> http://www.nw-america.com - Clustering Website
> http://msmvps.com/clustering - Blog
> http://www.clusterhelp.com - Cluster Training
> ClusterHelp.com is a Microsoft Certified Gold Partner
>
> "Chen" <Chen@.discussions.microsoft.com> wrote in message
> news:A214ED7F-C0A1-4D4A-A8B2-AB2FEFCFA6F3@.microsoft.com...
>
|||Agreed! And not cause I know better then to ever disagree with you on SQL
matters
Cheers,
Rodney R. Fournier
MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering Website
http://msmvps.com/clustering - Blog
http://www.clusterhelp.com - Cluster Training
ClusterHelp.com is a Microsoft Certified Gold Partner
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:%23GVaS5W7GHA.728@.TK2MSFTNGP04.phx.gbl...
> It is much easier to set a network name at the DNS level rather than the
> machine lever. Use a SRV record type in DNS to map a network name to an
> IPaddress/port number combination.
>
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Rodney R. Fournier [MVP]" <rod@.die.spam.die.nw-america.com> wrote in
> message news:e9Kpm6V7GHA.4288@.TK2MSFTNGP02.phx.gbl...
>

Can not update from view of linked server

Hi, All,
I got a problem with linked server, I cannot fix it, if anyone can help will
be appreciated.
The problem is two instance of sql server in one machine, A and B, in A made
a linked server to B. and a view in A. actually I can view the data from
view, but I can not update from view. I get error message:
7395, "42000", [microsoft][odbc sql server driver] unable to start a nested
transation for ole db provider 'sqloledb'. A nested transaction was required
because the xact_abort option was set to off.
7312, "01000" [microsoft][odbc sql server driver] [sql server] [ole/db
provider"] 'sqloledb' ITransationlocal::starttransaction returned
0x8004d013:isolevel=1048576
Thanks
Yifei
On the client where you are trying to update the view, try
executing: SET XACT_ABORT ON
before doing the update.
-Sue
On Mon, 31 Oct 2005 14:59:54 +1100, "Yifei"
<yjiang@.sdg.aust.com> wrote:

>Hi, All,
>I got a problem with linked server, I cannot fix it, if anyone can help will
>be appreciated.
>The problem is two instance of sql server in one machine, A and B, in A made
>a linked server to B. and a view in A. actually I can view the data from
>view, but I can not update from view. I get error message:
>7395, "42000", [microsoft][odbc sql server driver] unable to start a nested
>transation for ole db provider 'sqloledb'. A nested transaction was required
>because the xact_abort option was set to off.
>7312, "01000" [microsoft][odbc sql server driver] [sql server] [ole/db
>provider"] 'sqloledb' ITransationlocal::starttransaction returned
>0x8004d013:isolevel=1048576
>Thanks
>Yifei
>
|||It works, thanks Sue
Yifei
"Sue Hoegemeier" <Sue_H@.nomail.please> wrote in message
news:g5pem19r6401plkh1741bbt1at0bkvhi71@.4ax.com... [vbcol=seagreen]
> On the client where you are trying to update the view, try
> executing: SET XACT_ABORT ON
> before doing the update.
> -Sue
> On Mon, 31 Oct 2005 14:59:54 +1100, "Yifei"
> <yjiang@.sdg.aust.com> wrote:
will[vbcol=seagreen]
made[vbcol=seagreen]
nested[vbcol=seagreen]
required
>

Can not update from view of linked server

Hi, All,
I got a problem with linked server, I cannot fix it, if anyone can help will
be appreciated.
The problem is two instance of sql server in one machine, A and B, in A made
a linked server to B. and a view in A. actually I can view the data from
view, but I can not update from view. I get error message:
7395, "42000", [microsoft][odbc sql server driver] unable to start a
nested
transation for ole db provider 'sqloledb'. A nested transaction was required
because the xact_abort option was set to off.
7312, "01000" [microsoft][odbc sql server driver] [sql server] &
#91;ole/db
provider"] 'sqloledb' ITransationlocal::starttransaction returned
0x8004d013:isolevel=1048576
Thanks
YifeiOn the client where you are trying to update the view, try
executing: SET XACT_ABORT ON
before doing the update.
-Sue
On Mon, 31 Oct 2005 14:59:54 +1100, "Yifei"
<yjiang@.sdg.aust.com> wrote:

>Hi, All,
>I got a problem with linked server, I cannot fix it, if anyone can help wil
l
>be appreciated.
>The problem is two instance of sql server in one machine, A and B, in A mad
e
>a linked server to B. and a view in A. actually I can view the data from
>view, but I can not update from view. I get error message:
>7395, "42000", [microsoft][odbc sql server driver] unable to start
a nested
>transation for ole db provider 'sqloledb'. A nested transaction was require
d
>because the xact_abort option was set to off.
>7312, "01000" [microsoft][odbc sql server driver] [sql server]
[ole/db
>provider"] 'sqloledb' ITransationlocal::starttransaction returned
>0x8004d013:isolevel=1048576
>Thanks
>Yifei
>|||It works, thanks Sue
Yifei
"Sue Hoegemeier" <Sue_H@.nomail.please> wrote in message
news:g5pem19r6401plkh1741bbt1at0bkvhi71@.
4ax.com...
> On the client where you are trying to update the view, try
> executing: SET XACT_ABORT ON
> before doing the update.
> -Sue
> On Mon, 31 Oct 2005 14:59:54 +1100, "Yifei"
> <yjiang@.sdg.aust.com> wrote:
>
will[vbcol=seagreen]
made[vbcol=seagreen]
nested[vbcol=seagreen]
required[vbcol=seagreen]
>

Sunday, February 12, 2012

Can not remotely connect to instance of sql server 2000

I had a big problem on connecting sqlserver remotely from other machines on the network .....

From any computer in the network i wanna to register the instance of the sqlserver from the enterprise manager ..... the server instance doesn't appear within the available sqlserver list (the servername which equal to my machine is the only one that appear) ..... when i manualy write the servername\alias manually and i choose the connection type and then i write sqlserver username and password and then finish he give a message to me that access denied or sql server doesn't exist ... !!

by the way from the local machine i registered the local instance of sqlserver successfully and successfully i access the Databases .....

To be noted:

I previously uninstalled this alias and i then i reinstalled it again with the same name and i attached the previously exists Databes.

in the same time i installed on the same machine sqlserver 2005 connectivity clients not the server itself.

Why are you using aliases? Do select @.@.servername, and tell me if this is the exact name you're trying to connect to via enterprise manager.|||

thank you for trying to help me,

I am using an alias from a long time and it was working good until i uninstalled the server and installed it agian .......

when i make "select @.@.servername" it return back "magedsalah\maged" and as i told before it works well on the local machine where i can connect with the enterprise manager to magedsalah\maged without any problems ......

the problem when anybody wanna to register magedsalah\maged in the enterprise manager of another computer the magedsalah\maged doesn't appear in the servers list what appear is magedsalah and it can't be registered and sometimes and some there is nothing appear at all.....

for further details plz refer to original message in the thread.....

thanks

|||Did you ever figure out the solution to this, I'm having the exact same problem, it occured after I installed Sql 2005, and now i'm using named instances.|||

Hi,

After i trapped in solving this problem ..... i removed the existing sql server 2000 where i use the alias and then i installed it again without alias (the default case in setup) ..... then i reattached my databases ......... and it works fine now

|||

I ended up doing the same thing too, and mine works too now. There must be a trick to making it work with alias'/instance names too though, oh well.

Thanks