Microsoft SQL Server interview questions for DBA and database developer positions: Narayana Vyas Kondreddi's home page
http://vyaskn.tripod.com/iq.htm
How to determine the service pack currently installed on SQL Server? The global variable @@Version stores the build number of the sqlservr.exe, which is used to determine the service pack installed. Check out BEGIN TRAN, COMMIT, ROLLBACK, SAVE TRAN and @@TRANCOUNT What is an extended stored procedure? Can you instantiate a COM object by using T-SQL? An extended stored procedure is a function within a DLL (written in a programming language like C, C++ using Open Data Services (ODS) API) that can be called from T-SQL, just the way we call normal stored procedures using the EXEC statement
SQL Server Tutorials and Tips
http://www.sqlservercurry.com/
Let's take a look at the query as shown below - --CROSS JOIN SELECT ContactName, CompanyName, City, OrderID, OrderDate, RequiredDate FROM Customers CROSS JOIN Orders Summary In this article, we have seen different types of joins you can perform in SQL Server. The query is as shown below - The output of the above query is as shown below - EXCEPT Operator We will now explore the last operator, the EXCEPT operator
http://blog.sqlauthority.com/2008/07/02/sql-server-2008-insert-multiple-records-using-one-insert-statement-use-of-row-constructor/
Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account
http://blog.sqlauthority.com/2007/01/10/sql-server-query-to-find-number-rows-columns-bytesize-for-each-table-in-the-current-database-find-biggest-table-in-database/
script the source table and then run the script on destination, where you want to create the table, this will create a table with the same name with all the features of the source table. Tha query will give you properties for that table (columns, keys, values, etc.) I want to pull the same properties from a result set that is not already a table
sql server - How do I generate random number for each row in a TSQL Select? - Stack Overflow
http://stackoverflow.com/questions/1045138/how-do-i-generate-random-number-for-each-row-in-a-tsql-select
Below is the entire possible set of results for our imaginary integer range: Checksum Integer: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Range Result: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 0 1 2 3 4 5 You can see here that there are more chances to produce some numbers than others: bias. If used in a select, because the seed value changes for each row, it will generate a new random number for each row (it is not guaranteed to generate a unique number per row however)
No comments:
Post a Comment