Forum Replies Created

Viewing 15 posts - 11,101 through 11,115 (of 13,460 total)

  • RE: Get Distinct Values from 3 Cloumns

    Create table #TempA ( Name Varchar(20), Age Int,Hobby Varchar(20),HobbyCode Int)

    maybe I'm reading the requirements wrong, but if you want the current distinct combinations that exist in the table, would it...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: What solution for 30 million users

    I thought it's probably 30 million records, and not 30 million users, which I thought was on par witha Google sized-installation....but

    just for fun, i searched for Google Searches per day...found...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Map hyperlink to c:\ drive or shared drive in ssrs

    you'll need to make it a UNC path, like \\ServerName\SharedFolder\Filename.txt or whatever.

    you cannot put it on a C:\ drive, it has to be a share since you want other people...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL Trace

    i have this saved, because it is a great resource for determing the minimal impact that a trace incurs:

    http://sqlblog.com/blogs/linchi_shea/archive/2007/01/16/performance-impact-of-enabling-page-checksum-and-default-trace.aspx

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Trace TEMPDB/Temp Object Creation

    i created a view to see the data in my DML trace..only thing obvious i saw was to simply do a SELECT * from myDMLView where TextData like '%#%'...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: views

    there is no limit to the number of views you can create, even if they reference the same object over and over.

    you can create views against system tables, but they...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Query help

    Greg Snidow (5/11/2009)


    I can't see why Lowell's solution does not work, unless everyone, regardless of whether or not they have a photo present, exists in the table selling_photo.

    I'm with Greg,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Computed columns

    this seemed to work for me, but i only had one table with no index:

    select distinct object_name(syscolumns.id),

    syscolumns.name As CalculatedColumn ,

    syscomments.text as TheCalculation,

    isnull(object_name(SYSINDEXKEYS.id),'No Index Using This CalculatedColumn') As IndexName

    from...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Computed columns

    syscolumns has a iscomputed column...the calculation is stored in syscomments if you want to join to get that:

    now to get the indexes, that i'm not sure yet....

    select object_name(syscolumns.id),

    syscolumns.name As CalculatedColumn...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    get the script "sp_generate_inserts" from Narayana Vyas Kondreddi at http://vyaskn.tripod.com

    he's got a 200 and 2005 versions, and they generate INSERT INTO [YOURTABLE]....statements for you by simply passing it the tablename.

    be...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Audit script

    using COLUMNS_UPDATED, you can't, i guess you'd have to write your trigger to do each column individually, if that's what you wanted to do:

    IF (UPDATE(DESCRIP) )

    BEGIN

    [same code example]

    END

    IF (UPDATE(COLUMN2) )

    BEGIN

    [same...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Query help

    the inner join would only show members with records int he detail table...you want a left outer join instead:

    SELECT DISTINCT email

    FROM Member usr

    LEFT OUTER JOIN Selling_Photo pho

    ...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    lleemon13 (5/11/2009)


    In Restore Files and Filegroups, I can select the 'To database:' but in the Source for restore I selected 'From device' but can't paste the location into the box....

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Restore a SQL Server 2000 .bak to SQL Server 2005 using SQL Server Management Studio Express

    yes you can.

    Paul is right..if you take your backup .bak file, you can restore it on any SQL 2005 instance, but behind the scenes it will be upgraded to the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Sql server Installation Cd

    enterprise? no, that would be illegal. standard and enterprise are all purchases, and often involve thousands of dollars in licensing.

    developer edition costs 50 dollars on amazon.com, and allows you to...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 11,101 through 11,115 (of 13,460 total)