DataSource Controls :: Change Data Capture In SQL Server 2008
May 29, 2010
I was reading about "Change Data Capture" functionality in SQL Server 2008. It sounds awesome. My implementation of it would be in a website environment where ASP.NET pages use SQLDatasources to do inserts, updates and deletes. When enabling "Change Data Capture" can you store additional information supplied from the website like a UserID, SessionID, UserRole etc so you can identify who did the insert, update or delete? [URL]
CDC or Change data capture is a new feature in SQL Server 2008, which is an ability to record changes to table data into another table without writing triggers or some other mechanism, Change data capture records the changes like insert, update, and delete to a table in SQL server.I have sql 2005 and I have created triggers and tables CDC to capture the data. everything functions good and the data is being updated in the _CDC tables. all i need to do now is to generate the updated data as a report (excel/html)- what should I do ......?i need to show only the updated columns when user selects the date periods ( Range between dates ) and the person name - i need to display any updated info about that person during that period. So this updated columns about this person should be displayed in excel formatted column wise.
In one of our sprocs, we have a validation and it returns an error as: RAISERROR('this is the error message', 18, 1) When I call it in the business logic layer, how do I obtain this error message and pass it through the web service?
[Code]....
As you can see, it supposes to return a Users type, but how would I capture that error message in sproc and pass it all the way to UI?
I have a gridview that receives data based on selection from a primary dropdownlist object. Works.
Within the gridview, there is a dropdownlist whose selected index is based on the query from the primary dropdownlist. Works.
Problem.
How do I force the used to change whatever value that the dropdownlist contains after they make their initial selection from the primary dropdownlist; except the default value of "make a selection".
Gridview, contains a checkbox which drives whether a selected row is inserted into the data base. The databind in done using an ObjectDataSource on the presentation page, not in the code behind.
It is feasible to Design tables or write SQL to create tables within SQL Server 2008. There are commercial tools such as ERwin ,which provides a graphical interface to create tables, implement relationships, normalise. It is an excellent feature to generate SQL script and generate databases with tables by targetting SQL Server.
I like to know what is the support with in SQL Server 2008 to achieve the same as ERwin.
Please let me know any free tools that can be used as Add-On to SQL Server 2008 to achieve the same.
I've used the Import/Export wizard to get data into SQL from Excel and it works great. When I want to reverse the process, however, I can't. I've gone through the wizard multiple times and I've done what I think is everything to try to get the data out. What am I doing wrong?
is there any difference between sql express and sql client. Actually I have been told to install a sql client using which i will connect to the sql server installed remotely. Also I have sql express edition 2008 installed on my machine. So is it the same. Will I be able to connect to the sql server using the sql server express edition.?
I am using ASP.Net 4.0/Visual Studio 2010. However, I think it would be the same if it was ASP.Net/VB.Net 3.5. I am inserting three form filed values into a database table. I have placed a LoginName Control on the page and the login name is properly displaying. I am using forms Authentication and it is set up properly in the web config file. I simply want to insert the logged in username value into the database table so I can track who created the records. I am happy to be able to insert the UnserName or the UserID value. I assume both of the values are derived out of the aspnet_Users table. Being able to insert either one would be fine but I believe UserID would be better because it will always be unique.
When i tried to attach 2008 database in sql server 2008 it is throwing the error-
"The database 'actitle' cannot be opened because it is version 655. This server supports version 611 and earlier. A downgrade path is not supported.Could not open new database 'actitle'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)"
When i execute 'select @@version' it gives 'Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Workgroup Edition on Windows NT 5.1 (Build 2600: Service Pack 3) 'How the version still be 2005 when im in 2008 ..How can i attach my 2008 database back up.
i have an aspx page which has a fileuploader and a button
initially i have to browse the file and after browsing the file i have to check the extension if the extension is xsl or xslx then only i have to enable the submit button
once the submit button is enabled i have to insert this data into the table
and i have to display the number of succesfully inserted rows and no of unsuccessfull insertions .
success and failure is dependent on the mismatch of the datatype between the excel sheet and the database column
Previous developers have developed a .SSISDeploymentManifest file (SQL Server 2005) to install SSIS packages which prompts a Package Installation wizard. I tried to install it on SQL Sever 2008 (it works on SQL Server 2005), but it failed with the error: "Storing or modifying packages in SQL Server requires the SSIS runtime and database to be the same version. Storing packages in earlier versions is not supported".
How do I install 2005 SSIS packages on SQL Server 2008? I have all the .dtsx files, not sure how to install them?
I have 5 GB data, when I move from SQL server 2000 to 2008 with Import and Export wizard, my LDF size is increased to 30 GB, Can I reduce my LDF file or move. In my one of the table contain around 20 Lakh data which i have normalized in 2008 and create 4 tables, so my data is entering in normalized form in 2008. But due to size by hard disk is full. I have used shrnik command but it reduce to only 1 GB.
I have SQL Server Standard 2008 installed on my machine, alongside Visual Studio 2008.
My current hosting provider (not a huge fan) requires me to access my db's remotely via SQL Server Management Utility. To date, I've been doing it by connecting remotely in VS2008. Their troubleshooting documentation/steps, though, are for the SQL Server Management Express 2008, and i'm having a lot of connectivity issues with them.
I followed the steps here: [URL] to "add additional features to an existing installation" - but when I did so, the setup wizard indicated that the Management Tools-Basic were already installed.
The sites that I've got are still in classic ASP. I know this is a good reason to move to .net but I don't want to have to redo all the sites yet.
So here is the problem:
[Code]....
When I have "On Error Resume Next" no erros get posted and everything runs just fine, the pulls from the database work perfectly. But as soon as we take On error resume next we start getting the following erros: err#424err desc:Object requiredsql:SELECT Name,URL,Title FROM tblMenu WHERE Parent_ID=1 AND Deleted=0 ORDER BY SortOrderScript Name: /index2.asp
I am looking at installing SQL Server 2008 R2 and am curios as to how much of a difference I should expect with it installed on a 32 bit machine vs a 64 bit machine. I have a number of high performance 32 bit machines that aren't being used for anything, and so I assume that I could simply install Windows XP Pro 32 bit on one and sqlServer2008 R2 32 bit and have an inexpensive solution. What kind of degradation in performance should I expect.
I have sql server ex 2008 installed and I can connect via windows authentication and remote sql server authentication. The problem is I create a login for sql authentication on my sql server ex 2008 using mssms 2008. I simply create a database and a table. Create a login and user name for a DB and check the options. I am worried this wont work as i cant see any issue
TITLE: Connect to Server ------------------------------
I have been writing c# .net in MVS 2005 conneting to a sql 2005 db, after initial setup about a million years ago, everyhting ran smoothly. Then I upgraded to MVS 2008 connecting to a sql 2005 server. Still all good. Now my IT department FINALLY wants to upgrade the sql server (Stand alone server running on win server 2003 r2). I am wondering if there is a checklist or walk through of steps i need to take to keep connettivity. If I shoiuld build new connection strings for example, or should the current connections be ok to find the server/db/tables provided the server name and permissions haven't changed? Here is a snippit of my config file
i could write a query and i could debug forms using both sql server 2008 and visual studio 2008,but i could not connect to the sql server 2008 and test could not be succeded
I have big trouble with impersonate IIS and SQL 2008 . I connect to the iis where I set the ASP.NET Impersonate and I want connect to the sql server with user credetionals . And there is trouble . SQL server run in the win 2008R2 cluster . I try set delegation in the Active directory on the cluster server and in the cluster application .Not work. Connect to the SQL server with anonymous user.
I want to filter by database result based on the current date. I have a grid layout which will display the result based on the current date. I am using parameterized query for getting the result but it is not working.given below is the query i am using
Ive created a form on my website. what i want to do is when the user clicks finish at the end of the form, i want all that information to be sent to a table that is in sql server. does anyone know a) if thats possible? and b) what code i would need to put in vb?