Forum Replies Created

Viewing 15 posts - 121 through 135 (of 456 total)

  • RE: insert statement with variable for column name

    you could do this by declaring your statement as a variable....

    declare @sqlcmd varchar(max)

    set @sqlcmd = 'INSERT INTO myTable ('+@FieldVariable1+','+@FieldVariable2+')

    VALUES ('+@FieldValue1+','+@FieldValue2+')'

    exec (@sqlcmd)

    or somethinglike that

  • RE: lost permissions to execute stored proc

    you might also consider just granting execute to stored procedures on the database.

    USE your_database

    go

    CREATE ROLE db_executor

    USE your_database

    go

    GRANT EXECUTE TO db_executor

    that way, whenever a Dev or someone drops a procedure...

  • RE: String conversion

    select convert(varchar(2), month(getdate())) + '/'

    + convert(varchar(2), day(getdate())) + '/'

    + RIGHT(convert(varchar(4), year(getdate())),2)

  • RE: Timeout errors from SQL Server 2005

    you would also want to look at your indexes. if they are missing or the stats are out of date, that would be a problem too.

  • RE: Search Patteren

    here is a working examples of Full Text Search on a Test database;

    WARNING, if you have a database called Test, do not run the statement.....

    USE [master]

    GO

    IF EXISTS (SELECT name...

  • RE: Search Patteren

    yes, i see that....

    you would have to implement Full Text Search and use the CONTAINS statement i think.

  • RE: Search Patteren

    you could something like this;

    declare @MyTable table (MyColumn varchar(255))

    insert into @MyTable

    select 'India is My country'

    declare @variable varchar(255)

    set @variable = 'India'

    select MyColumn from @MyTable

    where MyColumn like '%'+@variable+'%'

    and have the application set...

  • RE: Start a remote service from SQL??

    are you trying to do this from a SQL Agent job? because then the account that runs the Agent would need the permissions.

  • RE: configure subscription to run every other Monday?? Standard Edition

    Standard does have the repeat function on the daily settings. Didn't think of that because the term Daily threw me... thanks.

  • RE: SSRS License

    sounds like you only need one.

    you need a license to run SQL Server Reporting Services.

    the mangement of the reports (or the creating / authoring of them) can occur anywhere BIDS...

  • RE: Referential Integrity: Who needs it - right? (Discussion)

    it sounds like you might be dealing with developers that are "long in the tooth".

    possibly developers that primarly developed on ISAM databases.

    there will be no arguing with them... 😛

  • RE: Patching: for sql servers and windows generally

    i've seen the "never patch" approach at very large fortune 500 companies.

    it is usually the practice when the vendor that provided the software no longer exists.

    as far as applying...

  • RE: Msg 512, Level 16

    its because your query (SELECT SUBSTRING(lname,1,2)+ SUBSTRING(fname,1,2) +

    replace(convert(varchar,dob,10),'-','') from client

    WHERE uniqueID IS NULL) returns more than 1 result.

  • RE: Talking baseball

    if Jamie Moyer can do it at 49, then Mariano can too. he stil has 7 years left. 😛

  • RE: Job Category

    SELECT T1.[job_id]

    ,T1.[category_id], T2.name

    FROM [msdb].[dbo].[sysjobs] T1 join msdb.dbo.syscategories T2

    on T1.category_id = T2. category_id

Viewing 15 posts - 121 through 135 (of 456 total)