Viewing 15 posts - 781 through 795 (of 13,469 total)
yes, but you need a case statement to bulletproof the calculation for data shorter than your assumption.
CREATE TABLE EXAMPLE (
ExampleId int IDENTITY(1,1) NOT NULL PRIMARY KEY,
MyColumn varchar(30)
)
INSERT INTO EXAMPLE(MyColumn)
VALUES( ''),('1234567890')
ALTER...
December 8, 2016 at 10:34 am
komal145 (12/8/2016)
I have a package , where i get the results from a storedprocedure and send it to a file.
meaning OLED source ( sql command) ---> Flatfile.
Pacakge runs...
December 8, 2016 at 10:00 am
wow, I've heard of petty turf wars like this happening.
You've got to bring it all out in the open, with your DCD and all related supervisors; this is not the...
December 8, 2016 at 6:17 am
CELKO (12/6/2016)
CREATE TABLE Forest
(node_name VARCHAR(20) NOT NULL PRIMARY KEY,
lft INTEGER NOT NULL CHECK (lft > 0),
rgt INTEGER NOT NULL CHECK (rgt > 1),
CHECK(lft < rgt));
INSERT INTO Forest
VALUES
('Root',1,8),
('first child...
December 6, 2016 at 5:30 pm
there is another parameter, @query_result_width, which i think is a default of 80 or 100, and anything wider wraps, which is what you are seeing
set it to a large number,...
December 6, 2016 at 5:21 pm
just read and work through your errors; you seem to be changing stuff pretty quick to try and get it to work.
your latest error is just because you checked the...
December 6, 2016 at 10:08 am
the error message you pasted was
The server response was: 4.3.2 Service not available,
which would be an SMTP service exists, but is not available.
so the issue is not database mail, but...
December 6, 2016 at 9:25 am
the obvious fix is to set up a specific account for the SSRS account that does not password expire.
on my SSRS instances, all reports use shared data sources, so...
December 6, 2016 at 6:45 am
yes it could potentially cause problems. best practice would be to go ahead and schema-qualify all the scripts provided to avoid any issues.
The scenario i would worry about is if...
December 6, 2016 at 6:34 am
so I'm assuming you want a soft fix to the issue, where you are detecting and maybe truncating in the trigger to make it no more than 200 characters, even...
December 5, 2016 at 5:56 am
nal4236 (12/3/2016)
December 3, 2016 at 8:48 am
does that trigger actually work for a non-sysadmin?
looks like you are just logging offenders, and not denying their connection.
any login would need insert permissions on insert master.dbo.CheckLogins , is that...
December 2, 2016 at 1:50 pm
put your code in a try catch, and explicitly bubble up any errors that might occur;
you'll get a better error description than you are currently receiving:
public void Main()
{
[highlight="#ffff11"]try
...
December 2, 2016 at 1:13 pm
Appending strings together to make a filename is tricky; if you are not careful/consistent with ending slashes, you'll get invalid paths.
i would suggest using Path.combine to handle that issue...
December 2, 2016 at 9:43 am
If a Procedure calls another procedure INSIDE it's code, any #temp tables are available to it that exist in the procedure;
if the procedures are called consecutively, then the temp...
December 2, 2016 at 8:48 am
Viewing 15 posts - 781 through 795 (of 13,469 total)