Viewing 15 posts - 181 through 195 (of 2,006 total)
In a script component, do something like this (untested): -
DirectoryInfo directory = new DirectoryInfo("T:\\Test");
...
October 7, 2013 at 9:36 am
simon.crick (10/7/2013)
So if it works 1% faster but is 10 times as complex, you still go for the "advanced" technique?
All I can say to that is "it depends". I purposely...
October 7, 2013 at 9:04 am
simon.crick (10/7/2013)
October 7, 2013 at 4:59 am
I think of myself as a beginner. I've been working with SQL Server for almost 4 years and generally move on to a new job as soon as I...
October 7, 2013 at 3:02 am
dwain.c (10/2/2013)
I choose option 1!
Got to agree, the logic isn't quite right for the outer apply method. The below uses a sproc written by Jeff Moden for generating a...
October 2, 2013 at 4:56 am
--SAMPLE DATA
--NOTE: IF YOU LAY OUT YOUR SAMPLE DATA LIKE THIS, PEOPLE ARE MORE LIKELY TO HELP YOU!
IF object_id('tempdb..#testEnvironment') IS NOT NULL
BEGIN;
DROP TABLE #testEnvironment;
END;
SELECT subjectid, subjectname,...
October 2, 2013 at 3:58 am
When you post in multiple threads like this, you fragment answers and make people have to start from the beginning again with helping you. If you have further questions, stick...
September 28, 2013 at 2:38 am
enriquezreyjoseph (9/27/2013)
Can I used this instead of sp_executesql i will use EXEC only??...cadavare
I'm not sure how many times I have to say "SQL Injection" to you. . . yes you...
September 28, 2013 at 2:36 am
andrew gothard (9/27/2013)
I've run a very quick google...
September 27, 2013 at 6:43 am
SELECT TOP 5 ID, MID, RName, Pic1, FoodType, Average_P_PP, lat, lng, Distance
FROM (
SELECT ID, MID, RName, Pic1, FoodType.Descr AS FoodType, Average_P_PP, lat, lng, Zoom, MAct, (
...
September 27, 2013 at 4:27 am
enriquezreyjoseph (9/27/2013)
Cadavre (9/27/2013)
enriquezreyjoseph (9/27/2013)
Thank you guys..so, i should change varchar now to my whole table and to my front-end...tsk :-(..
You're also vulnerable to SQL injection. Please look over the code...
September 27, 2013 at 3:03 am
enriquezreyjoseph (9/27/2013)
Thank you guys..so, i should change varchar now to my whole table and to my front-end...tsk :-(..
You're also vulnerable to SQL injection. Please look over the code I posted...
September 27, 2013 at 2:51 am
Why not build up your WHERE clause like this?
ALTER PROCEDURE [dbo].[SearchBiography] @firstname NVARCHAR(50), @middlename NVARCHAR(50), @lastname NVARCHAR(50), @sexID NCHAR(1), @statusID NCHAR(1) AS
BEGIN;
SET NOCOUNT ON;
...
September 27, 2013 at 2:30 am
Have a read of this article --> http://www.sqlservercentral.com/articles/T-SQL/61539/%5B/url%5D
September 26, 2013 at 2:55 am
Cadavre (9/24/2013)
--== Locks held in database ==--
SELECT request_session_id AS [spid], DB_NAME(resource_database_id) AS [dbname],
CASE WHEN resource_type = 'OBJECT' THEN OBJECT_NAME(resource_associated_entity_id)
WHEN...
September 25, 2013 at 9:05 am
Viewing 15 posts - 181 through 195 (of 2,006 total)