Forum Replies Created

Viewing 15 posts - 6,256 through 6,270 (of 13,460 total)

  • RE: How to bulk assign privilege to all sp to a specific role?

    It sounds like you were looping through every stored proc name;

    if the role is going to have EXECUTE priviledges on all procs, without exception, i think you can simply 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: Any way of verification

    well, it really on if (and how) you've set up your proc to return success or failure;

    you know a proc can return results in any and all of three different...

    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: Substring issue

    convert the date right away to time, and then you are working with hours from 0 to 23:59:59;

    so when you round the TIMe, it's between 0 and 23:

    --returns 10 AS...

    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: Tempdb 838GB's 2 mornings in a row

    rebuilding indexes wth sort in tempdb, maybe?

    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 Sql Server Express From Remote SQL Server Enterprise

    Ok if you can connect via SSMS from the 2005 machine to the 2008 Express, you can create a linked server;

    change the server name belwo, and tell me 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: Backup Sql Server Express From Remote SQL Server Enterprise

    there are a lot of variables in there...

    for example, by default, SQL Express does not allow remote connections...it has to be explicitly enabled.

    can you connect via SSMS from the Other...

    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: Security Questions for a newbie

    for #3, a Windows machine that is logged in will pass the token related to the user to the SQL server.

    the token has the built in assumption that 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: Error when displaying all the column names in one single column

    in the code you posted but snipped out, there is a GO statement.

    variables are desroyed at every GO, so you need to remove the GO, or re-declare and re-assign 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: Error when displaying all the column names in one single column

    without an ORDER BY, there's no guarantee that this "header" will be in the order you are expecting, but it's simple:

    SELECT 'Name|Address_line_1|Address_line_2|City|State|Zip|Territory_Code|LDC_Account_Num|Account|POWERFLOW|POWERDROP|Unbilled|NotDue'

    UNION ALL

    SELECT

    CONVERT(VARCHAR(500),UPPER(SUBSTRING(ea2.last_name,1,1)) + LOWER(SUBSTRING(ea2.last_name,2,499)))

    + ', '...

    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: xp_cmdshell help

    i'm sure xp_cmdshell is limited to 4096 chars; that's a hard limit with no work arounds, as it's a feature of the cmd.exe object int he operating system.

    Powershell 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: conversion error

    if you convert to MONEY datatype inbstead of decimal, the data will convert cleanly;

    otherwise, as Ninja stated, you have to remove the non-numeric strings like commas and spaces.

    with MySampleData (TheValue)

    AS

    (

    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: date when changes made to the object?

    if object = something in sys.objects, then yes, you can get teh default trace to see who last created/altered/dropped

    if object = data, then no, unless you have an auditing...

    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: Where do I go from here Education wise?

    absolutely agree; something as simple as create a database and adding a table, then backing it up is the first step;

    screwing around with the tables so you see 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!

  • RE: Where do I go from here Education wise?

    ramjohn8 (12/7/2011)


    Yeah right now I'm trying to learn as much on the subject. The DBA at my company is willing to let me in on some stuff but right...

    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 question - sending results of a Query via email

    when your query contains single quotes, you have to escape them, as it's now dynamic sql.

    this is updated witht hat change and is at least syntactically correct:

    EXEC msdb.dbo.sp_send_dbmail

    @recipients=N'my.email@gmail.com',@body='Message Body',...

    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 - 6,256 through 6,270 (of 13,460 total)