Linked Servers (Q/A)

Posted by NosaLee in SQL Server on 27-06-2012. Tags: , , ,

Q by EVX
Hi everybody, I’m an IT student and i’m doing professional practices. A simple project was assigned to me.
This company uses SMS to collect information of all his PC’s and stores this information in a MSSQL database. A manager checks this information and fills another database located in an[......]

Read More…

Backing up and restoring a LIVE database in SQL Server 2000 (Q/A)

Posted by NosaLee in SQL Server on 27-06-2012. Tags: , , ,

Q by SQL Server Ask the Experts
I am using SQL Server 2000, and I backup and restore my LIVE database to a new backup server every night. Do you have any ideas as to why my restored database runs slow when compared to the LIVE database? Do I need to rebuilding indexes? Is there any way of backing up[......]

Read More…

Looking for the user interface in SQL Server 2005 Developer Edition (Q/A)

Posted by NosaLee in SQL Server on 15-06-2012. Tags: , , ,

Q by SQL Server Ask the Experts
I just installed SQL Server 2005 Developer Edition and I can’t find the user interface. I’m looking for the place I’d type queries as I did in SQL Server 2000 Enterprise Manager. Where can I find the UI?
Re by Mrdenny
That would be the SQL Server Management Studio. St[......]

Read More…

A question about SQL Server (Q/A)

Posted by NosaLee in SQL Server on 15-06-2012. Tags: , , ,

Q by SQL Server Ask the Experts
Should we use System tables or Information schema views to retrieve Metadata, since both give the same results, and why?
Re by Mrdenny
In SQL Server 2000 you should be using the INFORMATION_SCHEMA views. In SQL Server 2005 and up you should refer to the system views. [......]

Read More…

SQLServer equivalent to dba_role_privs, dba_user_privs, dba_object_privs (Q/A)

Posted by NosaLee in Oracle, SQL Server on 15-06-2012. Tags: , , , , , , ,

Q by daveSTC
Is there a SQLServer equivalent to being able to retrieve internal application specific metadata that to the users/roles v.s. object privs (select, insert, update, delete, execute, etc.) ? In oracle it’s achieved by forming SQL selecting data from the appropriate "dba_" [......]

Read More…

Is the data in a SQL Server 2000 table still available for external applications, during editing or adding indexes via the Enterprise Manager? (Q/A)

Posted by NosaLee in SQL Server on 14-06-2012. Tags: , , ,

Q by SQL Server Ask the Experts
Is the data in a SQL Server 2000 table still available for external applications, during editing or adding indexes via the Enterprise Manager?
Re by Mrdenny
No, the table will be locked while the index creation command is running.
Original Address: http://itknowledgee[......]

Read More…

Migrate an Oracle database to SQL2005 (Q/A)

Posted by NosaLee in Oracle, SQL Server on 14-06-2012. Tags: , , , , , , ,

Q by Mnman66
I need to migrate an Oracle database to SQL2005. How many users have done this and what tool did you use? How effective was it? I know Microsoft has a migration tool, but just want to cover my bases as this is a very high profile project. Thanks all!!
Re by Mrdenny
The migration tool an[......]

Read More…

view and temp. table which one works better in T-SQL? (Q/A)

Posted by NosaLee in SQL Server on 13-06-2012. Tags: , , ,

Q by HL
please tell me which one performs better view or temp table ?
Re by Mrdenny
That will depend on what you are doing. Temp tables and vies are totally different from each other. Typcially views are not stored on disk, and the data have to be queried from the disk. Temp tables take the data th[......]

Read More…

ROW_NUMBER in SQLServer (Q/A)

Posted by NosaLee in SQL Server on 13-06-2012. Tags: , , ,

Q by FrankKulash
In Oracle, I can use the analytic ROW_NUMBER function to assign sequence numbers to output rows, re-starting the sequence as certain values change (e.g., there’s a separate count for each deptno in this example:) SELECT deptno , ename , ROW_NUMBER () OVER ( PARTITIO[......]

Read More…

How to create a user login and password in Enterprised Manager in SQL server 2000 (Q/A)

Posted by NosaLee in SQL Server on 13-06-2012. Tags: , , ,

Q by Tian8168
Hello, I am new SQL server DBA. I can create a new user. The request came in also ask for the password. Is there anyone can help me on how to set password to a user in in Enterprised Manager in SQL server 2000? Thanks,
Re by Mrdenny
Under the server, open security, then logins. I[......]

Read More…