Viewing 15 posts - 166 through 180 (of 315 total)
You dont need a cursor to get column names
Refer point 5
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926
Failing to plan is Planning to fail
November 5, 2008 at 6:06 am
As always I would say do this in your front end application if you want to show it there
or in SQL Server 2005, you can also use
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254
Failing to plan is Planning to fail
November 3, 2008 at 6:17 am
aswanidutt.dasara (11/3/2008)
hi Madhivanani am getting a null value.
regards
aswin
What do you get this for?
select b_name from historical.books
Failing to plan is Planning to fail
November 3, 2008 at 6:15 am
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/05/13/simulating-undocumented-procedures.aspx
Failing to plan is Planning to fail
November 3, 2008 at 5:56 am
http://sql-server-performance.com/Community/forums/p/28631/152790.aspx
Failing to plan is Planning to fail
November 3, 2008 at 5:56 am
DECLARE @PartSurrName varchar(20), @ArrayString nvarchar(2000)
SET NOCOUNT ON
CREATE TABLE #temp1_PBMVR
(
ID int, Type char(2) NULL,ExtractDate datetime, Col varchar(20),jan varchar(15), feb varchar(15), mar varchar(15),...
Failing to plan is Planning to fail
November 3, 2008 at 5:55 am
aswanidutt.dasara (11/3/2008)
sorry i forgot it , this is the updated one
ex:
create proc sp_books_outlet
@booknames varchar(100) output
as
select @booknames =b_name from historical.books
declare @booknames varchar(100)
exec historical.sp_books_outlet @booknames output
select @booknames
i have just...
Failing to plan is Planning to fail
November 3, 2008 at 5:51 am
Also leanr to use proper data types to store data
Failing to plan is Planning to fail
October 31, 2008 at 8:09 am
Also see if you want this
select id, name, changedate
from table1
where changedate > DATEADD(DAY,DATEDIFF(DAY,0,GETDATE()),-5)
Failing to plan is Planning to fail
October 31, 2008 at 8:07 am
budbeth (10/31/2008)
1) one table with the Customer info
2) one table that has Customer number & the four Ind fields combined together...
Failing to plan is Planning to fail
October 31, 2008 at 8:05 am
nikhil.pereira (10/31/2008)
I need to convert a julian date (YYYYDDD) to dd mon yyyy format. Below is the sql which does the conversion
select
convert(varchar,
...
Failing to plan is Planning to fail
October 31, 2008 at 8:04 am
mikemireku (10/30/2008)
format(number,"0000") as result
An example of result could be 0023, rather than 23
WHen doing in SQL Server, I...
Failing to plan is Planning to fail
October 31, 2008 at 6:45 am
peitech (10/31/2008)
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a...
Failing to plan is Planning to fail
October 31, 2008 at 6:44 am
ISDATE() is not reliable
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/09/24/handle-isdate-with-care.aspx
Failing to plan is Planning to fail
October 30, 2008 at 4:08 am
rbarryyoung (10/29/2008)
naidussdba (10/29/2008)
I have to Display List all the departments that don’t have any employees(Without using sub query).So why this unusual restriction?
Becuase it is an interview question 😉
Failing to plan is Planning to fail
October 30, 2008 at 4:03 am
Viewing 15 posts - 166 through 180 (of 315 total)