Viewing 15 posts - 286 through 300 (of 637 total)
if object_id('tempdb..#t') is not null DROP TABLE #t;
create table #t( str varchar(4000) );
insert into #t(str) values ( 'fox' );
insert into #t(str) values ( 'fox fox fox' );
insert into #t(str) values...
August 25, 2016 at 12:58 pm
I can not .. Why ? The Catalog table is a table in the ReportServer.
I am sure if you do have SQLserver , the go the ReportServer database and...
August 25, 2016 at 12:55 pm
Sorry , my mistake.
What I wanted was to get the path with out the file name .. So anything starting from char position 1 going all the way till we...
August 22, 2016 at 11:03 am
PLEASE IGNORE THE ABOVE POST...
I found the solution...( LISTED BELOW )
Thanks for reading
If object_id('tempdb..#t') IS NOT NULL DROP table #t;
CREATE TABLE #t( path varchar(255) )
INSERT INTO #t(...
August 22, 2016 at 9:13 am
Done! Works!
Thanks
Declare @SCHEMA VARCHAR(100);
Declare @TBL_PREFIX VARCHAR(100);
Select @SCHEMA = 'CLAIM'
Select @TBL_PREFIX = 'IMP'
DECLARE @sql NVARCHAR(MAX);
SELECT @sql = ( Select 'ALTER TABLE ' + TABLE_SCHEMA + '.' + table_name
...
August 4, 2016 at 1:29 pm
Not sure since it produces more than one row as output.. Some help would be appreciated!
August 4, 2016 at 11:19 am
One more thanks.... LUIS
Your constraint allows me to add NULL values as well. I needed that !
Good job.. I tested the following code and it worked
CREATE TABLE CheckTest(
...
August 4, 2016 at 11:18 am
Thanks LUIS C
We both posted at the same time.
Thanks for the help
August 4, 2016 at 11:15 am
OK I got it .... The following function works... NOW I need SYNTAX help. How do we add this as a CONSTRAINT to a existing varchar column
ALTER FUNCTION...
August 4, 2016 at 11:13 am
Here.. Can someone help me with the syntax and I we can add the function as a constraint. I need someone to help me with the ID statement inside.
Now sure...
August 4, 2016 at 11:06 am
Luis C
I don't have control over the structure of the table the data is landing. They defined it as varchar(25)
I am good at writing functions but I am not sure...
August 4, 2016 at 10:54 am
Please IGNORE the above.. I found the answer...from another website.
THE TRICK is in the PROPERTIES WINDOW
The best way that I've found to accomplish this is the following:
I create a test...
August 4, 2016 at 7:16 am
I am pleased with the reply from Luis Cazares (8/1/2016).
That works fine for me.
No need to reply to this post anymore.
Thanks for stopping by
August 3, 2016 at 10:42 am
SELECT
R.SESSION_ID,
R.REQUEST_ID AS SESSION_REQUEST_ID,
R.STATUS,
S.HOST_NAME,
C.CLIENT_NET_ADDRESS,
CASE WHEN S.LOGIN_NAME = S.ORIGINAL_LOGIN_NAME THEN S.LOGIN_NAME ELSE S.LOGIN_NAME + ‘ (‘ + S.ORIGINAL_LOGIN_NAME + ‘)’ END AS LOGIN_NAME,
S.PROGRAM_NAME,
DB_NAME(R.DATABASE_ID) AS DATABASE_NAME,
R.COMMAND,
ST.TEXT AS QUERY_TEXT,
QP.QUERY_PLAN AS XML_QUERY_PLAN,
R.WAIT_TYPE AS CURRENT_WAIT_TYPE,
R.LAST_WAIT_TYPE,
R.BLOCKING_SESSION_ID,
R.ROW_COUNT,
R.GRANTED_QUERY_MEMORY,
R.OPEN_TRANSACTION_COUNT,
R.USER_ID,
R.PERCENT_COMPLETE,
CASE R.TRANSACTION_ISOLATION_LEVEL
WHEN...
August 2, 2016 at 9:21 am
Viewing 15 posts - 286 through 300 (of 637 total)