Can anyone tell me how to set query timeout.
I have a stored procedure running with select statement I want to include a timeout option if the query runs for more than 3 minutes ,only for this procedure not at server level for all procedures.
Can anyone tell me how to do this
Thanks
Sparkme
I have a user called Report in a database.I want to find all the stored procedures on which this user is having EXECUTE permission in the database.
Can any of you tell me which system tables and how this can be queried?
Thanks
I came to know that
There is No need to add a column on the basis of Datetime value I can use the function in the
SELECT DATEPART(hh,DateAdd)
and group by DATEPART(hh,DateAdd)
Thanks
Friends I found the answer to this by myself.I added a column to the table (Table variable for temp result)
called DateId Which will be having id on the basis of DATETIME VALUE in the Order table Then I can order on the basis of DateId
Can anyone tell me how to update identity column
example id is identity colummn in author table i want to
update author
set id = new value
where id = old value
thanks
Is there any script in sql to insert excel file
like to insert the output of the following query
select * from authors
I know I can do this from DTS but I want to do from sql query.
Thanks
thanks for the reply. I want to move sql server Jobs between servers not Dts packages. Can anyone tell me how to move Sql server Jobs between two servers ???
Thanks
I want to start MSDTC under Cluster environment in Static mode, It was starting in Random Mode which I dont want.Can Some one help me Please .....?
Thanks In advance.
Thanks again for all the replies.
There is no entry in master.dbo.syscacheobjects table to find last time the proc was executed . The only thing we can do is to create a Log table and insert every time the proc is executed .
Thanks for all the replies to this thread now I got the answer....
SELECT * FROM OPENROWSET
(''Microsoft.Jet.OLEDB.4.0'',
''Excel 8.0;DATABASE= C:\Customerdata.xls;User ID=Admin;Password='', ''SELECT * FROM [data value$]'' )
Thanks
Hi Thanks to all your replies!
I have totally 60 Excel files which loads data
into 150 tables, If i use DTS i have to create 60 packages,
Instead if i write one program(script) which can be something like what i mentioned earlier FYI
SELECT * FROM OPENROWSET...
I have a Excel file Called Customerdata with data in one sheet called data value(There is another sheet in the same Excel file) This Excel sheet is in my Local drive C:
Can anyone tell me the syntax to fetch the record from this excel file (FYI) the following code is not working:
SELECT *...
I have a Excel file Called Customerdata with data in one sheet called data value(There is another sheet in the same Excel file, This Excel sheet is in my Local drive C:
Can anyone tell me the syntax to fetch the record from this excel file the following code is not working(FYI)
SELECT * FROM...
Hi ESquared ,
Thanks .But the script generated from there drop and recreate the table . I dont want to drop a table because i will lose data.
So i need only just alter script
to change a column from ordinary to a column with primary key having IDENTITY
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.