Forum Replies Created

Viewing 15 posts - 2,326 through 2,340 (of 13,460 total)

  • RE: Permissions and Ownership question when restoring db to local SQL Server Express

    for your local SQL instance, I'm sure you are sysadmin of the box;

    that means any database you create or restore on that locla isntance will be under your umbrella, 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: sql command

    mkkb917 (5/9/2014)


    ZoneSearch is a variable and it contain a zone name selected form the combo box items

    here it is "City"

    don't you have to put singe quotes in there...

    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: Select and format a text in a varchar column including char(13) and char(10)

    your application would handle the CrLf automatically, with zero changes, as long as you are using the right object;

    in C#.Net Windows Application,in a windows app, you'd could use System.Windows.Forms.Label,System.Windows.Forms.TextBox...

    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: Second instance on SQL Server Virtual Machine. How???

    i don't have an azure virtual, but on a regular box/server, you can extract the key from the registry; i found a decent powershell script that did that for me.

    can...

    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 2008 CLR Assembly with Permission Set Unsafe

    i'm thinking you might be able to do this in SQL, can't you?

    what am i overlooking here?

    i can get the UTC date, and datediff it agaisnt getdate(0 to get my...

    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: Database mail issue

    the error is being returned from the mail server, there is nothing wrong with your mail setup.

    with rare exceptions, mail servers deny connections or anonymous emails in order to prevent...

    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: Password History Table

    i believe you should simply do like windows AD does, and store the hash of the password, and not the password itself.

    then you compare the potential new password 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: Evaluation of duplicate aliases for multiple objects in a procedure

    UPDATE o SET Order_Number = (SELECT ord_number FROM dbo.orderheader oh

    [highlight]WHERE o.mov_number = o.mov_number[/highlight])

    FROM #Output o

    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: Case statement with <> condition

    well, the WHERE statement is still a "catch all" query, but isn't this functionally identical?

    WHERE 1 = CASE WHEN @p_flag = 1 OR moveFlag = 26

    ...

    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: Slow self join

    that looks like an accidental cross join to me.

    it explicitly says UPDATE DRPDATA, but since the FROM has the table name as being aliased,and the unaliased table is not referenced...

    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: BAckup's not completing 100%

    well, if you can show us the code, that would be helpful;

    does the current script gracefully handle wierd db names with quotename?

    a dynamically created backup command might fail, and move...

    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: BAckup's not completing 100%

    first look at the job's code itself;

    is it using a cursor to get the list of databases, or is it a static list?

    for example, if i use red gate 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: complicated sql syntax - looking for explanation for working query

    the starting at zero vs starting at one is because the function is adding time elements to generate your matrix of data

    SELECT DATEADD( minute, n, DATEADD( YEAR, -2, GETDATE()))

    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: All CLR Objects - Unrestricted access?

    for my personal CLR collection, the UNSAFE/EXTERNAL/SAFE designation is assigned at the project (dll) level, and not against individual procedures/functions.

    So all my CLR's are under a single project. that 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: Symmetrically encrypt a single node in XML field

    Eirikur Eiriksson (5/1/2014)


    Lowell, you where almost there! Changed the code to modify and store the encrypted secret, then decrypt in the select. This code has everything needed for either storing...

    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 - 2,326 through 2,340 (of 13,460 total)