Viewing 15 posts - 121 through 135 (of 456 total)
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
May 9, 2012 at 9:09 am
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...
May 9, 2012 at 8:41 am
select convert(varchar(2), month(getdate())) + '/'
+ convert(varchar(2), day(getdate())) + '/'
+ RIGHT(convert(varchar(4), year(getdate())),2)
May 9, 2012 at 8:31 am
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.
May 9, 2012 at 8:27 am
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...
May 9, 2012 at 7:17 am
yes, i see that....
you would have to implement Full Text Search and use the CONTAINS statement i think.
May 9, 2012 at 6:38 am
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...
May 9, 2012 at 6:12 am
are you trying to do this from a SQL Agent job? because then the account that runs the Agent would need the permissions.
May 7, 2012 at 1:18 pm
Standard does have the repeat function on the daily settings. Didn't think of that because the term Daily threw me... thanks.
May 7, 2012 at 1:14 pm
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...
May 7, 2012 at 1:09 pm
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... 😛
May 7, 2012 at 1:03 pm
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...
May 7, 2012 at 12:43 pm
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.
May 7, 2012 at 12:29 pm
if Jamie Moyer can do it at 49, then Mariano can too. he stil has 7 years left. 😛
May 4, 2012 at 12:50 pm
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
May 4, 2012 at 12:39 pm
Viewing 15 posts - 121 through 135 (of 456 total)