Forum Replies Created

Viewing 15 posts - 4,171 through 4,185 (of 13,460 total)

  • RE: UpdateStats Error 2501

    the script was originally written for SLq2000;

    it's using the old sysobjects instead of sys.tables

    now, objects are by schema, not by userr;

    so the offending code is here:

    set @tableListSQL = 'use ['...

    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: return zero for months where no data exsits

    you need a Calendar table of some sort which gives you the arraay of all possible months;

    from that you change your query to select from that table, and join 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: t-sql parse out data

    wendy we need some examples, i think;

    splitting the name based on some character is easy; PARSENAME or the famous DelimitedSplit8K are two examples that come to mind;

    but unless there 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: Can a malware on desktop affect the security of MSSQL?

    MSSQL_NOOB (1/4/2013)


    Is this security or stupidity?

    a little of both, i think.

    From a SQL server standpoint,

    SQL server passwords are inherently less secure than Windows authentication; you can use a brute...

    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: Track Detach in DDL Trigger?

    thinking outside the box, i think you could create a script that adds users to a role that removes backup permissions,

    on a per database level,

    ie DENY BACKUP...

    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: Track Detach in DDL Trigger?

    yeah DBCC commands are not DDL Events; you can do it in a trace or event notification, though;

    same thing happens when someone RESTORES a database...you cannot capture the RESTORE in...

    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: Track Detach in DDL Trigger?

    I just checked, and it does show up in my default trace

    here's my query i use to get to the trace data:

    /*

    --Results

    EventClassDescrip EventSubClassDescrip trace_event_id...

    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: Insert Into #temp table

    Roland Alexander STL (1/3/2013)


    twahl0630 (1/3/2013)


    Low hanging fruit would be to get rid of those OR's and UNION ALL a separate SELECT for each one. Also if there is any chance...

    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: Suppress automatic Hyperlinks in outlook in HTML format

    Mozilla Thunderbird, EditPlus and even Notepad++ as well as LOTS of other applciations all do the same thing when they encounter text that looks like an url or email, so...

    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: Suppress automatic Hyperlinks in outlook in HTML format

    Yeah that's a feature of Outlook, not something that has anything to do with the code you generate; it finds strings with an @ in them, and converts them 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: Report Builder record limitations if any?

    the better question is why you think you need a report with 600K or more records in it? who is going to use it? no-one can possibly manually review 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: Using xp_readmail to read mail from outer environment

    opc.three (1/3/2013)


    Thanks, Lowell. SQLCLR is a powerful tool, to be sure. You know where I stand on the topic already but I am curious now, can the assembly you created...

    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 copy and paste from a RDP session to your Local Desktop

    for me, a VPN session just gives me an ip and DNS services on my work LAN so i can see all the servers on the lan.

    so if i open...

    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: Using xp_readmail to read mail from outer environment

    opc.three (1/2/2013)


    xp_readmail is for SQL Mail, which is deprecated.

    In my opinion this kind of work should be done way far away from the database engine. There are many applications out...

    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: Export to CSV?

    and the same tested query via sqlcmd:

    declare @cmd varchar(4000)

    --sqlcmd -q "select col1,col2,col3 from table" -oc:\myfile.csv -h-1 -s","'

    SELECT @cmd = 'sqlcmd.exe' --the executable...if not in the PATH variable, you might need...

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