Forum Replies Created

Viewing 15 posts - 6,946 through 6,960 (of 13,460 total)

  • RE: Returning row count as output in CTE

    i just sat in on a SQLSaturday #79 in Davie(Fort Lauderdale) presentation on how to improve performance in exactly this situation;

    the Presenter was Dimitri, and he had a great example...

    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: Check Constraint and Case Statement

    much easier to comprehend...that whole pseudo code to abstract the logic actually made it harder to understand.

    the rules you pasted are actually multiple separate and distinct check constraints....all of...

    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 is light speed bkup

    http://www.quest.com/litespeed-for-sql-server/

    SQL LightSpeed is a third party applicaiton that creates backups for SQL server; it's faster than native backups and also compresses the backups to a smaller size.

    you'd have to have...

    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: Create a linked server into MS Access which reside in the remote Server.

    zozilany (8/15/2011)


    I am trying to create a Linked Server to an MS Access database on a computer other than where SQL Server resides. I can create the linked server if...

    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: Granting rights

    Sachin Nandanwar (8/14/2011)


    Just because you define it as a "Best Practice" and it gives me an overhead in maintenance then surely I am better off in not using those "Best...

    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: Non-Latin characters showing up as ????? in nvarchar column

    don't you have to explicitly state you are inserting nvarchar? otherwise there is an implicit conversion wich is incserting the question marks

    INSERT INTO tblDSV_AttributeChangeDetectionData VALUES (100700,'914225891','JOR','Historical Monument',1,34,N'??????');

    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: Importing Data into Database

    this may help a little;

    this gets all the directories in a given directory.

    from there, you can cursor thru to build what i had hard coded to 4 specific directories:

    --some variables

    declare...

    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: Importing Data into Database

    ok here's a full emaaple then, all in TSQL:

    this is getting every *.txt file in four different folders, and inserting them all into the same table.

    my table "BULKACT" would 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: Importing Data into Database

    would the table already exist that you want to import into?

    would all the csv files be the same format?

    if the above two things are true, you could use xp_cmdshell 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!

  • RE: Search Question

    --if you are going to put this in MASTER, and want it to be able to query

    --each database's sys.columns, you MUST mark it as a system procedure:

    --EXECUTE sp_ms_marksystemobject 'sp_UglySearch'

    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: Search Question

    Sean's so right on this...this is not a production tool.

    if you have a MillionBillionRow table, and it has 15 varchar columns...it's going to tablescan that table 15 times.

    this is...

    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: All UserList For DBs

    sp_msForEachDB ' SELECT ''?'' AS DBName, name As UserName from ?.sys.database_principals'

    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: Opposite of stoplist

    here's the BOl article about it:

    http://msdn.microsoft.com/en-us/library/ms142491.aspx

    the xml example that we talked about would look like this, i think:

    <expansion>

    <!--first word is our keyword, all the others are...

    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: Opposite of stoplist

    BinaryDigit (8/12/2011)


    I have the full word 'Jenny' in the table will adding to the thesaurus be able to make me search for 'jen' and get 'Jenny'?

    yes exactly. in your example,...

    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: Opposite of stoplist

    anything not in the stop list is searchable...but you might want to look at the thesaurus, where you can add cross references for words that don't exist in your data.

    a...

    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 - 6,946 through 6,960 (of 13,460 total)