Forum Replies Created

Viewing 15 posts - 61 through 75 (of 327 total)

  • RE: create table by using select command return data?

    Just a suggestion to try, I can't tell if you tried something like this or not:

    select tr.[GUID]as gid,[EP_NO],[NAME],

    [CONTRACTOR_CODE],[CONTRACTOR_NAME],

    [SUBCONTRACTOR_NAME],[PLANT_CD],[SKILLCODE],[WORK_AREA],

    [DISCIPLINE],[PASSTYPE],[PRES_ADD],[PRES_VILLAGE],

    [PRES_TALUKA],[PRES_DISTRICT],[PRES_TEHSIL],[PRES_CITY],

    [PRES_STATE],[PRES_PIN],[PRES_TEL_NO],[FATHER_HUS_NAME],

    [DT_BIRTH],[DT_JOIN],[EP_VALID_TILL],[LICENSE_NO],

    [GENDER],[BLOOD_GROUP],[RELIGION_CD],[ID_MARK],[HEIGHT],

    [DT_LEAVE],[COMMENT],[STATUS],tr.[ENROLLTIME] as EntTime,

    tr.[OPERATORID] as OptID, [MODIFY_DT],[CONTRACTOR_TYPE],[WORKAREA_CATEGORY]

    -------------------------- put the 'into' here --------------------------------- <<<<<<<<<<<<<<<<<<

    INTO NEW_TABLE_NAME_HERE

    --------------------------...

  • RE: Find size of all tables in a database

    suba.sathyanathan 40131 (10/18/2012)


    Hi Peter,

    Information_Schema.Tables is a system view. It is available as part of all sql server databases. Kindly let me as to which version of sql server you are...

  • RE: Table Variables

    L' Eomot Inversé (10/19/2012)


    When you referred to SQL Server not managing the size of tempdb correctly, I assumed you were complaining about SQL Server not managing the size correctly.

    True! I...

  • RE: Table Variables

    L' Eomot Inversé (10/19/2012)


    Maybe some programmers, but other programmers consider the statement

    that SQL Server doesn't correctly manage the size of tempdb to be either incorrect or at least...

  • RE: Table Variables

    Hugo Kornelis (10/19/2012)


    Very good question overall.

    Only (minor) issue - picking 6 out of 17 answer options is a task that appears daunting at first sight. The answer options were luckily...

  • RE: Upgraded SQL Server 2005 to SQL Server 2008, but it still reports 2005

    Vegard Hagen (10/18/2012)


    Yes, I did - and you knew exactly what you were looking at, but the other guy said it "looked like" something, so I gave him a resource...

  • RE: SSRS

    If your operator is logging into a windows domain on the computer with the internet explorer they're using to view ssrs reports, you can make use of the "built in...

  • RE: Finding Dynamic SQL's Dependencies

    arthur.gimpel (10/15/2012)


    patrickmcginnis59 (10/15/2012)


    The posted code wasn't formatted very well so wasn't able to read it without significant editting and it wouldn't run either (I only tried selected snippets from it...

  • RE: Finding Dynamic SQL's Dependencies

    The posted code wasn't formatted very well so wasn't able to read it without significant editting and it wouldn't run either (I only tried selected snippets from it ot verify...

  • RE: T-SQL

    Lokesh Vij (10/10/2012)


    bitbucket-25253 (10/10/2012)


    Nice simple question on the basics. Every one should get this right (I hope)

    I was hoping this too....Not every one got it correct!

    Correct answers: 75% (9)

    Incorrect...

  • RE: Interesting Sql protocol issue around calling stored procedure with select and update

    I reran the little vb snippet with op3's original 1000000 row test, and while it started returning rows, THIS time when I control-c'ed, no rows updated. I do realise that...

  • RE: Interesting Sql protocol issue around calling stored procedure with select and update

    This is an interesting one. I found some vb.net code that would read from a connection a row at a time and fed it the update statement. I control-c'ed after...

  • RE: Dynamic SQL - difference in handling of quotation marks with variables using EXEC

    jshahan (10/2/2012)


    I thought of another way to say it that helps me. The triple quotes maintain a string as a string. The single ones become part of the...

  • RE: Dynamic SQL - difference in handling of quotation marks with variables using EXEC

    jshahan (10/2/2012)


    That makes sense to me. Actually makes enough sense that I can understand it instead of memorize it.

    Thanks again.

    You're welcome and good luck!

  • RE: Dynamic SQL - difference in handling of quotation marks with variables using EXEC

    jshahan (10/2/2012)


    Thanks, Patrick

    Are you saying that the quotes function like escape characters and that handling of the escape characters is dependent on which clause they are in? EXEC wants...

Viewing 15 posts - 61 through 75 (of 327 total)