Forum Replies Created

Viewing 15 posts - 3,346 through 3,360 (of 13,460 total)

  • RE: Mistery never ending query

    Besides NOLOCK being a bad idea in general, as it can lead to bad thinks like missing data, duplicate data and more, the NOLOCKS on a temp table are pointless.

    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: How have Trigger's example after insert send to mail on outlook?.

    because my Google-Foo is strong, I Gave "mysql send email" a try.

    That lead me to a link on the MySQL forums, and a subsequent link to a Visual Studio project...

    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 EXECUTE 2-3 SQL STATMENTS ONE AFTER ANOTHER BASED ON THE RESULT OF PREVIOUS QUERY?

    Sean Lange (6/3/2013)


    You lost me a bit in here. There is no MERGE statement in what I posted. There is no delete. It is simply an insert statement with 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: how to assign additional SQL Server administrators

    that's the point... there is no need to use the exact same screen to add administrators that you saw during the initial installation; that screen is just for convenience, 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: Break a String apart

    AndrewSQLDBA (6/3/2013)


    Thank You Lowell

    That works perfect. I appreciate the other code to the right wide of the at symbol.

    Andrew SQLDBA

    glad i could help; if there were more than just two...

    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: Break a String apart

    If the Data ALWAYS contains the @ symbol, you could use some of the SubString functions:

    ;With MySampleData([val])

    AS

    (

    SELECT '1596424@DAR'

    )

    SELECT *,

    LEFT(val,CHARINDEX('@',val) -1) as OneWay,

    SUBSTRING(val,1,CHARINDEX('@',val) -1) As AnotherWay,

    SUBSTRING(val,CHARINDEX('@',val) +1,30) As RightSideWay

    FROM MySampleData

    WHERE...

    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: Calling Batch file using SQL Script

    Minnu (6/3/2013)


    Hi Team,

    Can u please tell me that the msg "UPDATE' is not recognized as an internal or external command,"

    is coming from the SQL exec call or from the batch...

    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: creating logon & logoff triggers in MSSQL

    Also Logon Triggers are per server, and not at the database level, so i can login, and then access multiple databases with multiple commands, and a Logon trigger would not...

    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: triggers

    well, I've got two suggestions:

    first, you should be using the INSERTED table so you only get the rows that were touched in this INSERT.

    The second, is just to review 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: help with Arithmetic overflow error; Calculating Lunar Phases.

    Ed Wagner (6/3/2013)


    WOW! That's an intense nested CTE.

    It ran fine until the year 2808, so I figured you must be bumping up against a converted numeric somewhere that was...

    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: need help on sql script

    it's the order of operations.

    create table StudentAccount references table Instructor,

    so the script has to create table Instructor before it can

    create table StudentAccount;

    i reordered that one table...

    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: Are the posted questions getting worse?

    I've got an HP G71, and bought one of thosse SSD/HD replacement Caddy to replace the DVD in the Side Bay with an SSD caddy.

    it was really easy to do...

    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 an access database

    pretty sure all you need to do is toggle this option:

    it's in place to prevent someone from making accidental changes:

    after that, you will be able to modify the column 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: locked out of local SQL Server

    here's a few different ways to recover access by adding yourself as a sysadmin:

    via powershell, which supports impersonation by a local admin:

    http://sqlblog.com/blogs/argenis_fernandez/archive/2011/07/10/think-your-windows-administrators-don-t-have-access-to-sql-server-2008-by-default-think-again.aspx

    via A Scheduled Task, which supports impersonation by 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!

  • RE: Extract values from varchar column

    GrassHopper (5/31/2013)


    I have a comments field that has certain values I want to extract into it's own field(new must be created). What is the syntax for doing this?

    the 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!

Viewing 15 posts - 3,346 through 3,360 (of 13,460 total)