HardCoded Breakpoint

Mar 5, 2001

My SQLAgent keeps failing with a DR. Watson message(see above) with differen addresses. Sometimes the SQL Agent will restart and other times it stays down.

I get no messages in the Agent Log or the SQL Server log. I get one message in the NT Event Log "SQLServerAgent Monitor: SQLServerAgent has terminated unexpectedly".

Running NT 4 sp 5 w SQL 7 w sp 2.
If you look at the NT Services, it shows that SQLAgent is still running. But SQL Enterprise manager shows it stopped.

If you try to look at a scheduled job or a DTS package, you get the message that SQL Agent is starting and to try back later.

Have stopped the NT Services SQL Agent and then tried to start it with Enterprise manager. No luck.
Only way that I have found to get out of this mess is to restart the server.

Looking for clues

View 1 Replies


ADVERTISEMENT

Need To Change Hardcoded Paths

Mar 17, 2008

I have created over a hundred reports and each of them are scheduled to output a pdf. The problem is this was temporary and each week I would like to output the reports to a directory that is based upon time. For example, I have 13 groups of reports and each group has 9 reports. Each group has it's own directory and folder. IE group A would be saved in something like \client filesgroup aweekly reportsMar 17 2008. The next week the reports for the same group need to be saved in \client filesgroup aweekly reportsMar 24 2008. This would be the same for each of the groups; group A, group B etc.

The question is there a way to set these paths dynamically or at least iterate through the subscriptions and change the paths?

Cheers

View 6 Replies View Related

Membership Provider Without A ConnectionString Value Hardcoded In Web.Config?

Jan 4, 2008

I have an application where I need to store the connectionstring not hardcoded in Web.config but in HttpRuntimeCache.However I want to use the membership provider which is normally set up to look for the connection string in a node of web.config.Is it possible to create a membership provider that doesn't need to get a connectionstring from Web.Config? Or looking at it a different way... Is it possible to have a connectionString setting in Web.Config where the value isn't hardcoded but looked up from HttpRuntimeCache?Thanks.

View 1 Replies View Related

Database List Hardcoded Into SQL Server Management

Nov 13, 2005

Hi,

View 4 Replies View Related

SQL Server 2012 :: Hardcoded Login And Password In Proc

Jul 22, 2015

I have a procedure where Login and Password of the database are to be used and right now i have given a valid hardcoded value for them.

How can I get these values from the actual login (I mean sql server authentication value or windows authentication).

View 8 Replies View Related

Custom Assembly Accessing DB With A NON Hardcoded Connection String?

Mar 25, 2008



We use reporting services to report on our SQL 2005.

I wanted to have a function that translates a filter (parameter) in one RDL from IDs to Names to be able to show a summary of what the user selected when he executed the report.

Instead of writing this function in the .Code, I said great, lets use custom assemblies.


PROBLEM: I see examples on how to enable a function in such dll access to DB, but they all hardcode the connection string in the vb code. that seems useless to me. Each customer will have different server name, I need to get the connection string from the sme (shared data source) used in the catalog's folder. just like the RDl is using it. how do I do that?

View 1 Replies View Related

Keeping Breakpoint And Debugging

Feb 27, 2007

hi, is there any possiblity to keep break point and run the step by step compilation as like we do in .net,if means please telll me how to do?

View 3 Replies View Related

Debug Not Stopping At Breakpoint

Nov 25, 2011

I'm trying to debug stored procedure code with SSDT, but the debugger don't stop at the breakpoint.

I imported the schema of northwind database from Denali to a new database project and used Run to publish it to localdb.

So, I inserted a breakpoint in SalesByCategory stored procedure, opened a new query window, write an execute statement and started the execution with debug.

The debugger stop at the exec statement, but never get into the stored procedure. I'm using a breakpoint in the stored procedure, already tryed F5, F11, nothing works.

Application Debugging option in localdb is checked.

The operating system is windows server 2008 R2. I'm still using CTP 3.

Did I forget to check/do something ?

View 2 Replies View Related

SQL Server 2012 :: Convert Hardcoded SP Into Dynamic Merge Statement

Feb 13, 2015

I am working on to convert my static Store procedure to Dynamic.

I have created a Store procedure with Merge statement which is inserting new record and updating existing record.

This SP I will use in SSIS Insted of Data Flow Task I will run in Execute SQL Task.

Now my biggest problem is I dont know how to convert static code toi dynamic

Below is my Store procedure code.

As you can see my Source Query

I have a filemaster table as shown below which consist of Input filename,Source table ,Destination table and BBX expression.

Input_FilenameSourceTableName DestinationTableName BBxKeyDerExpr
CCTFB ImportBBxCctfb ArchiveBBxCctfb SUBSTRING(Col001,1,6)
CEMXR ImportBBxCemxr ArchiveBBxCemxr SUBSTRING(Col001,1,10)

In my source query I want to change the value of Source table ,Destination table and BBX expression dynamically on the basis of input file.

Purpose of making dynamic is that I have created separate sp for all the input, my clients want to have sungle dynamic sp which will execute on the basis of input file.this input file name I wil get fromm variable which i have created in SSIS Package.

Lets consider @File_name is the variable in package which store the file name

if file name is CCTFB then my query should take the Source table ,Destination table and BBX expression value from file master table.

Like that I have 100 of source query and evry query have diffrent number of columns. How can I change the column number in uodate and insert statement dynamically on run time.

CAST(SUBSTRING(Col001,1,6) + SUBSTRING(Col002,1,10) AS varchar(100)) :-It creates a key for comparing, this value i can take it from filemaster
HASHBYTES('MD5', CAST(CHECKSUM(Col001, Col002,Col003,Col004) AS varchar(max))) -here numberv of column need to be changed .
(SUBSTRING(SOURCE.Col001,1,6) + SUBSTRING(SOURCE.Col002,1,10)) this condition also i can take it from file master.

[Code] ....

I am able to get inserted and updated rowcount, but not able to get the matching records count.

View 0 Replies View Related

Putting Breakpoint For Stored Procedures

Mar 31, 2008

Hi All,
How we breakpoint to the vb.net code to analyse the code. Is it possible to put breakpoint to stored proceudres so that analysis can be done.
 
Thanks
 Abdul
 
 
 
 

View 2 Replies View Related

Having Problems Using Breakpoint In Script Task.

Jul 12, 2007

I am still pretty new to SSIS, SQL, and DOT NET. I came from the UNIX world. I have a SSIS package. On the Control Flow one of the Items I have is a Script Task. I was able to successfully set breakpoints in the Script Task and they worked fine. I could step through the script and check values in variables. Life was good.

Now something happened. I set the breakpoint, from the menu I select €œstart with debugging€? and I get the following window:

----------------------------- -
Visual Studio Just-In-Time Debugger

An unhandled exception (€˜System.Runtime.InteropServices.COMException€™) occurred in DTAttach.exe [3380].


Possible Debuggers:

New instance of Microsoft CLR Debugger 2003
New instance of Visual Studio .NET 2003
New instance of Visual Studio 2005


[_] set the currently selected debugger as the default
[_] Manually choose the debugging engines

Do you want to debug using the selected debugger?

-----------------------------------------------------------
I have tried selecting Yes, but that doesn€™t work. If I delete all breakpoints the package runs fine. I greatly appreciate your help.

View 3 Replies View Related

SSIS Crash On Breakpoint Deletion

May 23, 2008

I'm having an issue with trying to delete breakpoints in my SSIS package. I think the breakpoints were created when I added dataviewers through my process, however the breakpoints were not deleted when I removed the dataviewers. It would then appear that my process would not halt on ANY breakpoints - orphaned or valid.

Furthermore, whenever I tried deleting the breakpoints manually, my whole IDE would crash. I got around the issue by closing the dtsx page first, then deleting the breakpoints, and reopening my dtsx.

Are these valid bugs with SSIS? Has anyone else experienced this? I'm running this against a SQL Server 2005 database using VStudio 2005 as an IDE.

Thanks!
Chris P

View 2 Replies View Related

Breakpoint In Child-package Triggered On First Execution Only.

Sep 23, 2007

I have a child package which is executed several times within the same SSIS ETL. I have placed a break point on one of the child package's tasks, set to trigger on a PreExecute() event. The first time the child package is invoked, the breakpoint is triggered. However, on each successive invocation the breakpoint is ignored. Does anybody know if this behaviour is normal? Thanks in advance!

View 1 Replies View Related

Integration Services :: SSIS 2008 Randomly Ignores Debug Breakpoint?

Oct 12, 2015

SSIS 2008 when I develop and debug in BIDS sometimes ignores debug break point.

The script component is in the main control flow and at some point the breakpoint did work.

If, for example, I create a new project and copy my script component there the debug breakpoint will work.So it's absolutely *random* when it works and when it does not.

Below is my BIDS detail:

Microsoft Visual Studio 2008
Version 9.0.30729.4462 QFE
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: IDE Standard
Enterprise Library v5 Configuration Editor   4.0

[code]....

View 2 Replies View Related

Unexpected Behavior When Setting A Script Task Breakpoint In Package W/ Multiple Script Tasks

Apr 16, 2006

I ran into a variety of problems trying to set a script task breakpoint in a package containing multiple script tasks. The debugger apparently treats the breakpoint as if it were set in ALL tasks in the package, not just the one in which it is actually set.

At best this results in hitting breakpoints in scripts where they are not set and at worst the debugger brings up the "Send error report" dialog and quits (while the package continues to run). The latter seems to happen most often when the script with the breakpoint has more lines than an earlier script and the breakpoint is set at a line number that exceeds the number of lines in the earlier script--it bombs when the earlier, shorter script starts.

To get the debugger to work under these circumstances I had to add some nonsense code like


While False
Dim i as Integer = 0
End While
to every script, at the same line number near the beginning of the script (line 40, for example). I then set a breakpoint on the middle statement in one of the scripts (doesn't matter which) to cause the debugger to open at runtime. It doesn't hit the breakpoint because the line is never executed. If the breakpoint is set on a line that can be executed in any script in the package, bad things tend to happen.
I then add a "stop" statement to the script that I want to debug. This only works if the debugger is already open, hence the dummy breakpoint above.
This workaround is usable, but I am debugging a package that has quite a few scripts and having to insert dummy code in all of them at a fixed line number is rather inconvenient. I would really like to see breakpoints work the way one would expect--only in the scripts where they are set.
Is there some other, easier way around this problem? Is there at least an easier way to get the debugger to open so that "stop" will work?

View 3 Replies View Related

The Script Files Failed To Load In Script Task When Setting A Breakpoint In The Task On Vista

Mar 15, 2007

I cannot set a breakpoint in a Script task and have it complete successfully. I am running Vista 32-bit and only the workstation tools for SQL Server 2005 SP2. The steps to recreate are:

1) Create a new SSIS project/package.
2) Add a Script Task.
3) Set a breakpoint in the Script Task.
4) Run the package.

When I remove the breakpoint, the script task succeeds. When I put it back the task fails. The execution results say "Error: The script files failed to load." I completely uninstalled all SQL Server 2005-related entries using the Programs and Features control panel, rebooted, reinstalled the Workstation Tools, then applied a freshly-downloaded SQL Server 2005 SP2 and rebooted. If I change "RecompileScriptIntoBinaryCode" to false the script fails whether there's a breakpoint or not. If it's true (the default), the script only fails when a breakpoint is set. I would like to be able to set a breakpoint to assist in debugging the package. For the time being, I can move the package to a different (non-Vista) OS, where it works fine, but I would like to be able to develop and debug on Vista.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved