Forum Replies Created

Viewing 15 posts - 1,036 through 1,050 (of 13,460 total)

  • RE: Sad to see spamming being flooded in this forum.

    kreuzer (5/12/2016)


    Hi,

    for me as a human user, it would be OK to type a captcha to post something.

    Or, only confirmed accounts can post something. I think, it should be possible...

    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: Unable to establish a linked server from sql server to mysql

    rathimittha.mb (5/12/2016)


    Hi,

    Thanks again for the quick response.

    I tried with 4 part query. And it keeps throwing an error.

    It says 'Invalid use of schema or catalog for OLE DB provider...

    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 that launches a script using xp_cmdshell

    there's a few things that can be improved here;

    your code is assuming one row from inserted exists, it should be modified to handle multiple rows.

    calling xp_cmdshell requires sysadmin privileges,...

    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: GETDATE() -vs- fn NOW()

    if you include the fn now function, there are seven ways i know of to get the current datetime; there's a few threads around that points out that a potential...

    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: Possible to also show the date a topic was started?

    Thanks for the script.

    couldn't resist.

    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: Order to insert / update data on tables (FK)

    there is a built in stored procedure from Ms to get the objects in FK hierarchy order.

    If you have a circular reference, you can get stuck in a loop(A references...

    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: Unable to establish a linked server from sql server to mysql

    Once you have the Linked Server in place I have found a few different ways of interacting with the mysql database:

    Select Statements:

    select * from mysql5...country

    select * from OPENQUERY(mysql5, 'select *...

    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 owners, collations and backups

    Iwas Bornready (5/10/2016)


    Thanks for the script.

    i looked through your post history, and you seem to be adding this comment to lots of old scripts; this one was nine years old;

    contribute...

    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: Index question

    OK so zero seeks on the primary key, and we know it's also the clustered index since it is index_id = 1

    so nothing, really ever says WHERE PK = {somevalue}

    would...

    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 Job Reports Emails Failure but Emails are Actually Sending

    can you show the entire error message? maybe show the entire contents of the step that is cursoring through the emails;

    it looks like the email sent correctly, but an...

    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: Unable to establish a linked server from sql server to mysql

    this page on the forums is my go to for linked servers to MySQL.

    if you are running 64 bit SQL, you need the 5.1 64 bit MySQL drivers. 32 bit...

    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: Dynamically growing/shrinking code in an SP

    here's what i came up with to get the first date of the month, to the "latest" sunday 5pm

    there might be a shorter datemath to do the same work, it's...

    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: get the first Sunday and last Saturday

    {edit added this comnetn to wrong post!}

    here's what i came up with to get the first date of the month, to the "latest" sunday 5pm

    there might be a shorter datemath...

    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: Dynamically growing/shrinking code in an SP

    etl2016 (5/10/2016)


    many thanks.

    Every sunday evening 5pm is a cut-off mark and certain aggregations are to be done for that week, with Sunday 5pm as cut-off. As we know,...

    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: Dynamically growing/shrinking code in an SP

    it really sounds like it's just plain old parameterized query;

    you could be using something like date math to add days or weeks on demand to expand or shrink your...

    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 - 1,036 through 1,050 (of 13,460 total)