Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sparkme
  • Order by date
  1. sparkme

    How to set Query Timeout

    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
  2. sparkme

    How to retrive stored procedures having execute permission for a user

    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
  3. sparkme

    Quey to find decimal values

    Hi, THE SQL Select 100/30 is returning 3 in query analyser I want to see 3.33 (i MEAN WITH DECIMAL VALUES) CAN ANYONE TELL ME Thanks
  4. sparkme

    Order by

    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
  5. sparkme

    Order by

    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
  6. sparkme

    Order by

    Sql Friends , I want to write a sql query to order the daily orders by date as well as number of orders per hour.Please help. Thanks Spark
  7. sparkme

    updating identity column

    NO SET IDENTITY_INSERT TABLE author ON WILL WORK FOR INSERT BUT NOT FOR UPDATE
  8. sparkme

    updating identity column

    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
  9. sparkme

    Inserting xls file from query

    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
  10. sparkme

    How to Move Jobs

    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
  11. sparkme

    How to Move Jobs

    Can anyone tell me how to move Jobs between two SQL servers? Thanks
  12. sparkme

    MSDTC HELP

    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.
  13. sparkme

    How to find the Last time proc executed?

    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 .
  14. sparkme

    How to find the Last time proc executed?

    Is there any way we can find the last time a stored procedure was executed? Thnaks in advance
  15. sparkme

    selecting data from Excel sheet

    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
  16. sparkme

    Fetching Data from Excel File

    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...
  17. sparkme

    Fetching Data from Excel File

    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 *...
  18. sparkme

    selecting data from Excel sheet

    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...
  19. sparkme

    IDENTITY COLUMN

    Thank you so much!
  20. sparkme

    IDENTITY COLUMN

    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

Part and Inventory Search

Back
Top