Forum Replies Created

Viewing 15 posts - 6,136 through 6,150 (of 7,187 total)

  • RE: Sql query with group by clause

    Can you show us what you've tried, and then maybe we can point out where you're going wrong? Otherwise it's too much like we're doing all the work for...

  • RE: change collation on a datase

    Be warned that if you change the collation of the database so that it is different from the rest of the server, and your application uses temp tables, you could...

  • RE: Moving Databases into different drive

    OK, I'll take your word for that, since I never tried it in SQL Server 2005, and the option isn't available in SQL Server 2000. You still have to...

  • RE: Moving Databases into different drive

    Steve

    I back up my database to disk, then I restore to a different location using WITH MOVE. That would work, wouldn't it, and with no manual copying of files?

    John

  • RE: Moving Databases into different drive

    Backup and restore may not be the fastest option (although if you have very large database files with very little data in then there won't be much in it) but...

  • RE: Size of a Database

    (1) This gives the total size of the database files, including free space within those files

    (2) This gives the sizes of the individual database files, including free space

    (3) The size...

  • RE: help about case

    Try COALESCE or ISNULL.

    John

  • RE: How to get data from a table whose name is in another table?

    I think dynamic SQL is your only option to get round this somewhat dubious database design. Something like this:

    DECLARE @sql varchar(1000)

    SELECT @sql = 'SELECT * FROM ' + TableName

    FROM...

  • RE: Need help doing SET @StartTime = SELECT GETDATE()

    Try SELECT @StartTime = GETDATE(). You should declare @StartTime and @StopTime as datetime rather than varchar.

    John

  • RE: My Recent EMail

    Ram

    Absolutely. I'm not preaching the supremacy of any language. But if you don't express yourself clearly in the language in which you have chosen, for whatever reason, to...

  • RE: My Recent EMail

    Ram (1/11/2008)


    I wouldn't worry as long as the subject matter is conveyed to the other end in any form.

    But if you don't express yourself clearly, then how can you be...

  • RE: My Recent EMail

    Karthik

    Try reading some English-language newspapers. You will find that the sentences are clear, concise and well-formed. Stick to the type we in the UK refer to as "broadsheet"...

  • RE: SQL Query Prob

    What do you mean when you say it doesn't work? Does it give an error message, or does it just not return the results you expect? Please provide...

  • RE: Compare column rows in two tables

    Please will you post your table structures in the form of CREATE TABLE statements and also give some sample data in the form of INSERT statements. Also, please show...

  • RE: GETDATE()

    Could it be to do with your regional settings? What happens if you do SELECT CAST (GETDATE() AS datetime)?

    John

Viewing 15 posts - 6,136 through 6,150 (of 7,187 total)