Forum Replies Created

Viewing 15 posts - 4,306 through 4,320 (of 13,460 total)

  • RE: How to import Excel file into SQL?

    tantcu (11/28/2012)


    Do you know how to do it with macro?

    any macro is going to have too many specifics...you have to build the macro before you can use it, and that...

    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: How to import Excel file into SQL?

    have you looked into the built in Import Export Wizard, or SSIS or using a linked Server yet?

    one of the many selections of the wizard is to chose an excel...

    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: Syntax request needed. Merge an 'openquery' select towards linkedserver

    why not the two values in the same query? just an oversight?

    select * from openquery([linkedserver here],

    'select

    name,

    @@version

    from sys.servers

    where server_id =0')

    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: Parsing First Middle Last name

    what if your data is not in that exact format?

    /*

    --Results

    First_Name Middle_Name Last_Name

    Doe, John M.

    */

    With [data$]...

    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: Baselining Database Code

    rebecca.moore.ctr (11/28/2012)


    Thanks definately useful but I was looking for a quick way to grab all the database code and put it into individual files. The purpose would be to baseline...

    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: Service Broker Fire and Forget

    i found a few articles, all with explanations:

    http://rusanu.com/2006/04/06/fire-and-forget-good-for-the-military-but-not-for-service-broker-conversations/

    http://social.msdn.microsoft.com/Forums/en-AU/sqlservicebroker/thread/9ebba1ac-79b3-4eac-a2f6-41def13154cb

    http://www.nootz.net/index.php/service-broker-fire-and-forget-messages.html

    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: Connection to SQL Server dropping

    just reading up and want you to check the basics.

    search the code and see if there is a {MyConnection}.Close, where {MyConnection} is the variable name for your Connection...it might 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: Table is loading for long time and becoming time out?

    ok, does select * from table have any text or varbinary columns that are huge in size?

    can you get teh actual exection plan and post it?

    when that query is running,...

    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: Table is loading for long time and becoming time out?

    also post the query; you might have an accidental cross join or something, so your 150 rows is actually billions of rows by mistake.

    a little peek might explain it better.

    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: Source of a Function

    Brandie Tarvin (11/28/2012)


    You can search stored procedure definitions by joining sys.objects to sql_modules and doing a WHERE clause with a LIKE statement on the definition column of sql_modules. That should...

    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: Is there something wrong with the search on the site?

    SQL_ME_RICH (11/27/2012)


    Or perhaps it's even worse, and returning NULL!!!

    😛

    but null is neither results nor not results, so it must be ok!

    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: Transpose Rows to Columns with first column values as column names from the table??

    lynn.huff (11/27/2012)


    Lowell, that link just points back to this forum post.

    whoops! link fixed, i built the tag wrong, sorry.

    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs[/url]

    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: Is there a way to Identify if a database is no longer in use

    you could also set the database to autoclose, and then check the sql server log to see if it was ever opened after you change the flag.

    you'd have to make...

    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: Transpose Rows to Columns with first column values as column names from the table??

    part two of the group of articles that cpn hector mentioned is doing it dynamically, when the # of values is unknown.

    the link to part two is here:

    Cross Tabs and...

    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: trigger not updating desired record

    i think your trigger needs to be like this;

    affect only the inserted records that actually also have [Transfered] = 'True';

    your current trigger would affect all records being inserted at this...

    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 - 4,306 through 4,320 (of 13,460 total)