Viewing 15 posts - 1,201 through 1,215 (of 1,923 total)
And also dont forget to read skcadvre's post on the same thread, excellent explanations on FOR XML path.. thanks Wayne and skcadavre..
September 5, 2010 at 12:08 am
If you want to understand what the code does, read thro this:
http://www.sqlservercentral.com/Forums/FindPost962505.aspx
Wayne Sheffield did an extraordinary job in explaining the code! 🙂
September 5, 2010 at 12:05 am
Chandrasekar, you are here for a long time ; why dint you learn to provide your question so effectively so to extract best help from the volunteers?
Please provide your question...
September 4, 2010 at 11:55 pm
I am able to see lot of things about a column name when i query Information_Schema.Columns
PFA the screenshot of my query
September 4, 2010 at 9:31 pm
Or you could use Information_Schema views
Like :
SELECT * FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'TABLE'
September 4, 2010 at 12:22 pm
you cant do it that way.. using dynamic query u can build it..
declare @sql varchar(max)
set @sql = ''
select @sql = 'SELECT ' + dbo.fn_columns() + ' FROM Table'
PRINT...
September 3, 2010 at 4:12 am
Remember, QUOTENAME is limited to 128 characters ; any input more than that will produce null.. So if the names should exceed 128 chars, i would forcefully CAST/CONVERT it to...
August 31, 2010 at 9:19 pm
WayneS (8/31/2010)
SELECT SYSDATETIME() AS SYSDATETIME
,SYSDATETIMEOFFSET() AS SYSDATETIMEOFFSET
,SYSUTCDATETIME() AS SYSUTCDATETIME
,CURRENT_TIMESTAMP AS...
August 31, 2010 at 9:12 pm
Like
DataSet myDS = <Source> ;
string TabName = myDS.Tables[1].Name ;
?
August 31, 2010 at 7:47 am
Are u having C# code to import the Excel data ?
August 31, 2010 at 7:44 am
WayneS (8/31/2010)
Tom, it actually sounds like you really needed some Cold Coffee :w00t:
LOL.. Yeah Wayne! :w00t: :hehe:
August 31, 2010 at 7:42 am
Thre will be 2 invisible magic tables inside a trigger, INSERTED and DELETED..
if a value is inserted into the table where the trigger is written upon, a row will...
August 31, 2010 at 2:50 am
Without Sub Queries, probably Quatrie's method will siut.. But tel me, isnt that a interview / homework question? IF u learn the answer from us, when will you learn it...
August 31, 2010 at 12:47 am
Try this:
CREATE TABLE TempTable ( Col1 NVARCHAR(MAX))
INSERT INTO TempTable ( Col1)
SELECT CAST ( <other language column> AS NVARCHAR)
FROM <Your Table Name>
August 31, 2010 at 12:45 am
How about this?
declare @rank int;
set @rank = 2;
; with nums (N) as
(
SELECT 3
UNION ALL SELECT 6
...
August 31, 2010 at 12:43 am
Viewing 15 posts - 1,201 through 1,215 (of 1,923 total)