Viewing 15 posts - 166 through 180 (of 323 total)
in the previous example just I gave ref. see the below code for more view:
-- Code
-- Procedure Creation
createprocedure#Orders
(@OrderIDvarchar (100)
)
as
declare@Querynvarchar (2000)
set@Query= 'select * from Northwind.dbo.Orders where OrderID in (' +...
November 7, 2008 at 5:04 am
use DBCC CHECKDB, DBCC DBREPAIR (sql 2000) and then observe the display output.
November 7, 2008 at 4:59 am
you can pass multiple SalesOrderID, see the below example, and re-write you sp accordingly.
Code:
declare@OrderIDvarchar (100)
,@Querynvarchar (2000)
set@OrderID= '10248, 10249, 10260'-- Multiple values
set@Query= 'select * from Northwind.dbo.Orders where OrderID in (' +...
November 7, 2008 at 4:50 am
for SQL 2000: select * from master..sysmessages;
SQL 2005: select * from master.sys.messages;
This table exists in master database.
November 7, 2008 at 4:42 am
need some more info. of your query.
November 7, 2008 at 4:38 am
use OpenDataSource in you Select Statement to get the Oracle Data.
For more information see SQL BOL.
November 7, 2008 at 4:36 am
not possible to restore database with .ldf file, send a query to directly microsoft sql server team.
November 7, 2008 at 2:48 am
try like this:
select ID, isnull (firstname, '') + ' ' + isnull (middlename, '') + ' ' + isnull (lastname, ''), isnull (address, ''), isnull (phoneno, '') from contact
November 7, 2008 at 2:42 am
set the isolation levels for database. So don't worry about whether record is commited or not.
for more info see SQL BOL.
November 7, 2008 at 1:21 am
in SQL 2000, there is no PIVOT command, but you can get the data like PIVOT for more information see SQL BOL.
in SQL 2005 and above version PIVOT command exists,...
November 7, 2008 at 1:16 am
use COALESCE function instead of IsNull or NullIf.
November 7, 2008 at 1:11 am
can you try like: selectconvert (varchar, getdate(), 106), for more info see SQL BOL CAST & Convert Funtions.
November 7, 2008 at 1:09 am
Generally SQL 2008 Dev. edition available to download for MSDN / Tech Net subscribers.
Dev. Edition cost is $50. See the link: http://www.microsoft.com/sqlserver/2008/en/us/pricing.aspx
November 6, 2008 at 10:58 am
Viewing 15 posts - 166 through 180 (of 323 total)