Forum Replies Created

Viewing 15 posts - 7,891 through 7,905 (of 14,953 total)

  • RE: T-SQL Performance Question

    Probably no difference at all.

    Check the execution plans for two queries like that, see if they're different in any way.

  • RE: Getting correct results back from variable

    What's wrong with this:

    declare @DateFormatted char(8);

    select @DateFormatted = CONVERT(CHAR(4), getdate(), 100) + CONVERT(CHAR(4), getdate(), 120);

    select @DateFormatted;

  • RE: Using OPENROWSET to import CSV files

    Unzip the file I attached here, and try this:

    select *

    into #T

    from openrowset('MSDASQL', 'Driver={Microsoft Text Driver (*.txt; *.csv)};

    DefaultDir={path to file, not including file name};Extensions=csv;',

    'select * from CSV1_4_Cols.csv') Test;

    select *

    from #T;

    Once it's...

  • RE: How does a View work?

    Yeah, indexed views are definitely in the category of "Do not try this at home. Trained professional in a closed database." But, if you know what you're doing,...

  • RE: Getting correct results back from variable

    What would be the correct format for today's date? (Need a sample of what exactly you want in order to help out here.)

  • RE: Using OPENROWSET to import CSV files

    You could use Select ... Into ... and dump the data into a temp table. If you have row names in the first row, you can use those to...

  • RE: rebuild/reorganize script

    Page count is the one that matters. 13 pages is WAY too small for fragmentation to matter, so SQL is pretty much ignoring you and just doing what it...

  • RE: How does a View work?

    Jeff Moden (11/4/2009)


    GSquared (11/4/2009)


    That means, no, it doesn't pull all the rows and then filter them. The query engine is smarter than that.

    Ummm... not always true, Gus. If...

  • RE: Remote Desktop Too Slow

    I'm pretty used to remote desktop through the internet being pretty awefully slow.

    I've used Vista for remote desktop locally (same LAN) with no problems, and I've used it from three...

  • RE: How to convert some Access SQL into TSQL?

    Right-click the database in Management Studio, go to Properties, select Options, and see what the Compatibility Level is set to.

  • RE: Backup question

    Every time I've tested out various compression schemes for backups, they've sped the process up, not slowed it down. Makes sense - CPU and RAM are faster than disk...

  • RE: GETDATE()

    When you say "not accepting", what do you mean? That it gives you an error message, or that it doesn't give you the data you expect?

    My first suspicion on...

  • RE: Need to pull string out of a filename

    Is there a reason that you're pulling the data out of the directory instead of out of the msdb backup tables? msdb.dbo.backupset has the file name and the database...

  • RE: Error Handling/Commit Transaction

    Makes sense.

  • RE: Error Handling/Commit Transaction

    Can the code from the trigger be moved into the proc?

Viewing 15 posts - 7,891 through 7,905 (of 14,953 total)