Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Sql server tables

$
0
0
Extend the Excel changes to the sql server table

So I'm in Excel and I connected to my SQL Server Table. I updated a couple columns in Excel. column1,column2 updated1, updated2 updated3, updated3 Is there a way in the VBA Immediate Window to run an update statement to propagate the changes back to

Insert float value in SQL Server table

I have a float value that I'm trying to insert into a SQL Server table with this code: SqlConnection connection = new SqlConnection(ConnectionString); SqlCommand command = new SqlCommand("AddNewValue", connection); command.CommandType = CommandT

How do I lock a SQL Server table of other processes until my transaction unlocks it?

I need to make an update to a sql server table to a busy table. But, I want to make sure no other process is able to update or select for update on that table until I am done making my changes. However, I don't want all other request to fail, I just

Removing duplicates from the SQL Server table

I have a situation in my SQL Server table where I have numerous duplicates of records like following: SID Username InQueue ------------------------------------------------------------------ 162 peeeer2 492 2017-01-18 12:20:21.820 0 354 2791 peeeer2 4

SQL Server Table to FoxPro Table Issues

I am trying to get some SQL server tables into FoxPro dbf. I successfully managed to bcp export data such that when I use FoxPro Import Wizard, the data imports correctly. But when I try to do it at the command line, I can at best import the first fe

How to Select Separately Delimited Texts and Completely Column the SQL Server Table

I have a SQL Server table with a column p_author containing semi-colon (;) delimited text value. I used this query to split and select the respective id's from another table but it only splits once whereas I need all the value id's after splitting ei

Select n random rows from the SQL Server table

I've got a SQL Server table with about 50,000 rows in it. I want to select about 5,000 of those rows at random. I've thought of a complicated way, creating a temp table with a "random number" column, copying my table into that, looping through t

Problem with the MaskMoney jQuery plugin and Decimal field type (SQL SERVER table)

I am using a ASP.NET MVC framework, jQuery library (1.3.2), linq to sql, sql server 2005. I have a problem with jQuery MaskMoney plugin, to save data in sql server table. I created a table, where this table have a field "valueProducts" type Deci

The SQL Server table is sorted by default

I have simple SSIS package where I import data from flat file into SQL Server table (SQL Server 005). File contains 70k rows and table has no primary key. Importing is sucessful but when I open SQL Server table the order of rows is different from the

Notify a C ++ application when a change to a SQL Server table is performed

I've posted this before but haven't obtained a suitable answer that fits my requirements. I'm looking for a technology to notify a C++ application when a change to a SQL Server table is made. Our middle-tier is C++ and we're not looking to move onto

How to find a non-English language and its data in a sql server table

I have a Sql Server table loaded with data from multiple countries. Say Japanese, Thai, Urdu, Portuguese, Spanish and many more which i didn't identify. How to identify the language and its relevant data from that table ? sample: colid | colname 1 |

Increase the performance of the SSIS packet unload data from the Excel to SQL Server table

I have created an SSIS Package that dumps data from Excel file to SQL Server table. The package is simply having 2 tasks: Script Component Task & OLE DB Destination Please find below the code i have added in the script task: /* Microsoft SQL Server I

How to fill a SQL Server table with user information from Active Directory?

Using VB.NET in an SSIS package, how do I populate an SQL Server table with the users in multiple Active Directory domains (in the same forest)?Script Component (VB.NET) with System.DirectoryServices Here is a sample logic that import Active Director

Conversion of a value in VB.Net into bit when inserted into the Sql Server table

For X in the VB.Net code below, I need to pass in a bit value. what is the equivalent of a bit in VB.Net to make the conversion and insertion occur into the Sql Server table The parmList_chg is of type String because most of the values being passed i

How to query a SQL Server table with an interval of months

I have a SQL Server table that have data store in this format, I want to extract data from March 2014 to Feburary 2015, how can I achieve this, please? ID Months Years fd1 fd2 fd3 fd4 ------------------------------------------- 1 january 2014 1 2 3 8


Viewing all articles
Browse latest Browse all 3160

Trending Articles