Viewing 15 posts - 1 through 15 (of 49 total)
Dave Ballantyne (1/13/2011)
krishnaroopa (1/13/2011)
Recently we replaced cursors with while loop
Ahh , you fell for that one , it is a myth that replacing cursors with a while loop is...
January 13, 2011 at 4:36 am
You can also write this query it to tell you what are the missing indexes
This will work only on db witch people working and apps are sending queries to...
January 13, 2011 at 2:49 am
Many indexes can slow down the update queries and the insert queries is this the reason that no indexes on the table
January 13, 2011 at 2:18 am
--and this will give you every row as a table
DECLARE @LotsOfText VARCHAR(MAX)
SELECT @LotsOfText = BulkColumn
FROM OPENROWSET(BULK N'C:\temp\1.csv' , SINGLE_BLOB) AS x
DECLARE @row VARCHAR(50)...
January 12, 2011 at 10:19 pm
--try this first create the function
create FUNCTION [dbo].[fn_SmallSplitVarChar] (@sText VARCHAR(8000),
@sDelim VARCHAR(20))
RETURNS @ret TABLE(
Value varchar(800)
)
AS
BEGIN
DECLARE @i INT
SELECT @i = 1
DECLARE @j-2 INT
WHILE...
January 12, 2011 at 10:18 pm
Can you attach a sample file with data
January 12, 2011 at 9:24 pm
sql_lock (1/12/2011)
I use an excellent tool that will allow you to exec...
January 12, 2011 at 8:23 am
this will give the data type
Select column_name,DATA_TYPE from Information_Schema.Columns
where table_name='your table'
January 12, 2011 at 7:09 am
or
Select column_name from Information_Schema.Columns
where table_name='YourTable'
January 12, 2011 at 5:29 am
or you can use
sp_help 'tablename'
January 12, 2011 at 5:28 am
this
select c.Name, c.colid from
syscolumns c
inner join sysobjects o
on c.id = o.id and o.xtype = 'u'
where o.name = 'Your_table_name'
order by c.colid
January 12, 2011 at 5:24 am
When you want to create a clr function that download the file
to the computer, or a clr function that will return the XML
Notice must be given to clr function
EXTERNAL_ACCESS...
January 12, 2011 at 5:07 am
Viewing 15 posts - 1 through 15 (of 49 total)