About 50 results
Open links in new tab
  1. Add an identity column in select query - social.msdn.microsoft.com

    Oct 7, 2021 · To add an Indentity column, in SQL Server management studio create a column of type int. In the table design view, from the properties for the table, you can select it from the Identity …

  2. SELECT SQL QUERY USING CURRENT DATE TIMETO GET THE USERS AGE?

    Oct 7, 2021 · How would I write the SQL query and could I assign the resuls into one group?

  3. nvarchar (max) truncated dyanmic sql - social.msdn.microsoft.com

    Oct 9, 2014 · Why do you conclude that the result is truncated? What does datalength (@sql) return? The output in SSMS may seem truncated, but that is a display issue. SSMS truncates PRINT output …

  4. SQL Query for Phone Numbers - social.msdn.microsoft.com

    Apr 8, 2015 · I have a SQL Server and want to use a query to compare two Phone Numbers. I have one Number from the Phone System like "0049800123456". Now I want to use a SQL Query to check if …

  5. SQL Query to find the Delta between 2 rows

    Jan 9, 2014 · Wouldn't it be easier to keep a copy of the excel files, determine which rows have been changed in excel and simply update all columns from the query ,except for the primary key or lookup …

  6. AS/400 linked server - ODBC and query syntax

    Dec 12, 2008 · SQL Server versions are SQL Server 2005 Developer SP2 (32 bit) and SQL Server 2005 Enterprise SP2 (64 bit). I've started with the developer edition (test environment), creating a dsn with …

  7. SQL query to add Zero prefix - social.msdn.microsoft.com

    Oct 7, 2021 · I have to write query so that if the SSN is 5 digits long then add 3 zeros to prefix.

  8. SQL Query - multiple counts for a pie chart

    Jul 22, 2017 · Looking for some assistance with one of my SQL queries. This query is being used in an SCCM environment. My end goal is to create a pie chart in report builder, with each slice …

  9. How To Select Top Record of Each Group From Aggregate Query?

    Mar 3, 2014 · Unfortunately, with 30,000 records to be aggregated, selecting top values and then retrieving the corresponding users, the query will not be the fastest query processing whichever way …

  10. Adding description attribute to ADSI LDAP query

    I am trying to query the Active Directory with the following SQL Server 2008 query, which works perfectly.