Skip to main content

Questions tagged [sql-server-2005]

Use this tag for questions specific to the 2005 version of Microsoft's SQL Server.

Filter by
Sorted by
Tagged with
0 votes
1 answer
276 views

I have a procedure that pushes data from my local SQL Server 2005 database into a table in an Azure DB which is set up as a linked server. The basic data flow is create a #staging table, fill the #...
tkeen's user avatar
  • 372
0 votes
2 answers
166 views

I have a table dates with a column SENTDATE where each row has a varying number of dates in it, separated by a semi colon (...
MeltedMetal's user avatar
1 vote
1 answer
98 views

I'm currently working with a stored procedure that executes an INSERT statement using EXEC sp_executesql. The procedure takes several parameters, including ...
zolei's user avatar
  • 25
0 votes
1 answer
92 views

I want to know how to pass symmetric key to SQL query as parameter. I'm usually hardcoding it within the query as follows: ...
Mark's user avatar
  • 91
0 votes
0 answers
62 views

I've been given the unenviable task documenting the catalogue ingest process of our data warehouse. All was going well until the end where I came across the use of a conditional split inside of an ...
DickMille's user avatar
0 votes
1 answer
105 views

Values in the column Name_Orig look something like this: **Ang-Stl-A36-6X4X.5**Angle,A36*,4X6X1/2**** I want First occurrence ...
ITBrute's user avatar
0 votes
0 answers
280 views

Result Set of MSrepl_commands I want to infer that whether its a insert/update/delete command . We need to check at day end the amount of data replicated per article by the transactional replication. ...
BK Shailender's user avatar
-1 votes
1 answer
152 views

This is not just a simple extraction. I have two tables. I take the values from one table and then use one column from this table to find a corresponding value in another table and then extract all ...
Brute's user avatar
  • 43
0 votes
1 answer
101 views

When I make a new migration (Add-Migration Example) , and then I try to get all the migrations (Get-Migration) I find that the "applied" field is "True" without even using (Update-...
elshater hassan's user avatar
1 vote
4 answers
122 views

My table structures are shown here: Table1 Col1 10 20 20 20 30 30 40 Table2 Col1 10 20 30 40 My expected result is this: Col1 Col2 10 Matched 20 Matched 20 Not Matched 20 Not Matched 30 Matched 30 Not ...
Kannan's user avatar
  • 11
-1 votes
3 answers
343 views

Using SQL Server, I have multiple tables: Assignments aID, acID, clientID, userID, pos, dateOn AssignmentCarriers ...
Damien's user avatar
  • 4,339
0 votes
0 answers
158 views

We are trying to save a DataFrame in SQL Server (V2005) using the following method: ...
Moisés's user avatar
  • 105
0 votes
1 answer
160 views

From a certain column I need the following type of data: Value is 6 characters long and is numerical “L” is any letter followed by 5 numerical characters, for example L12345 the L needs to be turned ...
Brute's user avatar
  • 43
1 vote
0 answers
138 views

Sometimes, when there is no load on the server, the size of the MS SQL database tempdb log file (templog.ldf) starts increasing. As a result, the available space on the C drive decreases. To resolve ...
madhukumar's user avatar
1 vote
3 answers
1k views

I have a column Amount which I want to get its sum by month within each year. I have tried the following query and it works well for year but month is summing up ...
User_K47's user avatar
0 votes
0 answers
2k views

I have updated my PC to Windows 11 Pro ver 22H2, Os build 22621.1 After this update, I cannot connect to SQL Server 2005 from SSMS v.18.4 ...
Rauf's user avatar
  • 12.9k
0 votes
1 answer
80 views

In SQL database (2005/2008), I have a field named Ordernumber having the following values: 1, 2, 3, 5, 6, 7, 9, 10, 4a, 8a, 4b, 8b I want a way to sort them to be 1, 2, 3, 4a, 4b, 5, 6, 7, 8a, 8b, 9, ...
Fadl Assaad's user avatar
0 votes
1 answer
557 views

I have encountered an error after attempting DB Maintenance from within Design Manager, and cannot figure out how to get the DB unlocked. Essentially, ran the DB check for errors utility, and during ...
cartomeo's user avatar
0 votes
1 answer
47 views

I have this table called Table1 with fields subkey, category and frequency. I want to populate the frequency by counting per category. Subkey Category Frequency AA apple BB apple CC banana BB grapes ...
Joe's user avatar
  • 1
0 votes
1 answer
72 views

I have very old backup file (.bak) of SQL Server 2000. After restoring it to SQL Server 2005, the database looks empty (please see screenshot). What is the probable ...
borozu's user avatar
  • 9
0 votes
0 answers
44 views

Suppose I have a script: alter table .... go insert into ... go alter table ... go delete from .. go How do I configure this session at the beginning of this ...
user avatar
0 votes
0 answers
69 views

I'm hosting a sql instance on google cloud sql. Firebase functions worked with this instance flawlessly. Now it stopped working out of nowhere and I can't seem to get any error. Code: ...
Abdelrahman's user avatar
0 votes
0 answers
30 views

I am trying to recover a database for a customer who has been depending on MS Dynamics for a long time. His Server 2003 data drive failed irrevocably, but he had a recent backup of the his Server ...
Kevin Drew's user avatar
0 votes
1 answer
44 views

select o.*,x.cust_name from( select cust_name from customer c where salesman_id IN( select salesman_id from Orders o where ord_date ='2012-08-17'))x I only got ...
RamaKrishna's user avatar
-2 votes
1 answer
66 views

Below is my CTE Example It's just a example my actual query is different ;with CTE as ( select 1+1 as A,2+2 as B,3+3 as C ) select (A+B)-C as Final_Count from CTE ...
Atul Kadam's user avatar
1 vote
0 answers
197 views

To Devs, I am trying using the following: ...
user1154422's user avatar
-1 votes
2 answers
66 views

From the input data, I need to rank the id. The data is order by time ascending. Example: id number 421492036 has two record with code '05' and is ordered by time ...
Simma's user avatar
  • 23
0 votes
0 answers
28 views

I am trying to create a column with incrementing numbers inside a group as per Table below. RecordID OrderID IncrementInGroup a 1 1 b 2 1 c 3 1 a 4 2 a 5 3 a 6 4 a 7 5 b 8 2 c 9 2 I am having dozens ...
Likvor's user avatar
  • 1
0 votes
1 answer
1k views

The engineers uses this Access based app that takes data from SQL Server 2005. The users download a file containing details of parts etc make amendments and upload it again. When the file is upload(...
Brute's user avatar
  • 43
0 votes
1 answer
55 views

I have the two tables pictured from a "city jail' DB, one is the sentences given to criminals and the other criminal information. I am trying to write a query the lists only the criminal_id, ...
dheeke's user avatar
  • 37
0 votes
0 answers
382 views

I'm migrating procedures from Microsoft SQL Server 2005 to Microsoft SQL Server 2019 and I got stuck while trying insert query result xp_cmdshell in linked servers to table I'm out of ideas Old ...
wielebny's user avatar
0 votes
2 answers
17k views

I want all the MAFN column values that were added to the table in the last hour(:mm). The column ReturnDt stores the time it was ...
Brute 's user avatar
  • 151
1 vote
1 answer
156 views

I have a two table table, first table storing all the latest data and second table to capture the changed data. For example if an user change value the FIRST table will update the data and SECOND ...
David Lee's user avatar
0 votes
2 answers
250 views

Situation My company software is running on SQL Server 2005 on Windows Server 2008 R2 with a static IP. Requirement I wanted to access data for reporting into Power BI. What I have tried so far ...
amitdigga's user avatar
  • 7,336
1 vote
0 answers
164 views

I have a rails app with a sql server database. I manually create an empty database for rspec to test on with all the necessary tables before running the specs. Currently when running the specs the ...
marrnj2's user avatar
  • 11
4 votes
1 answer
727 views

I know, I know. It's not supposed to be this way. Big picture, I'm working with map data and trying to determine which street a bus stop is closest to. A street is made up of a series of points. Some ...
George Mastros's user avatar
0 votes
2 answers
156 views

I need output like below StockQty = 10 Balance Qty [Allocate Stock Qty] Shortage [Stock] Running Stock 5.000 5.000 0.000 5.000 10.000 5.000 5.000 0.000 5.000 0.000 ...
Zoyeb Shaikh's user avatar
0 votes
1 answer
40 views

I am trying to combine two columns into two rows. I am unbale to work it out with the PIVOT table. My table looks like this ...
Engineers Kitchen's user avatar
1 vote
0 answers
89 views

Purpose of the query is to fetch all permissions for Particular user with all the details. Please find my query below : ...
Suraj Kudale's user avatar
1 vote
1 answer
226 views

Using the example below, (from the answer in this link here) how can I select/group with an extra column ? I have searched this site and others and tried some examples but couldn't get it to work. <...
Ben Junior's user avatar
  • 2,591
0 votes
1 answer
466 views

I am facing a very strange issue using SQL Alchemy. I have a table in SQL server, to store Sales, with this format : ...
kilag's user avatar
  • 576
1 vote
3 answers
1k views

I have this table and I'm trying to determine how many Tables (in a restaurant) are awaiting food. The table( in the database) has the following columns: TableNumber, ObjectType, ObjectDescription and ...
OldJan's user avatar
  • 13
0 votes
0 answers
40 views

Columns: ID (int) , Part (varchar), DF0 (varchar), DF1(varchar), DF2(varchar), DF3(varchar), DTI(DateTime) All the samples I seem to find can get me the count or the data minus the ID and DTI. I need ...
BillyDvd's user avatar
  • 176
0 votes
1 answer
338 views

I have a dataset that has two date columns for each transaction. An invoice date and a charge date. I am trying to do a cumulative or running total of the table in sql. Data table looks like this ...
Rishtin's user avatar
0 votes
2 answers
82 views

Say i have this table Product Version Value 1 1 1000 2 1 2000 3_a 1 2500 3 1 3000 2_a 1 1200 What i want to do is: For each row where product does not end with '_a': check if there is any row with ...
StarStreeto's user avatar
0 votes
1 answer
2k views

I have the following tables: ...
milo2011's user avatar
  • 339
0 votes
0 answers
862 views

I'm need some help for making a query with SQLalchemy and SQL server using a simple web form. Form fields are datefrom, dateto, and name so any user can filter the query base on their preferences. ...
DSgUY's user avatar
  • 101
-1 votes
1 answer
104 views

I am trying to get record with Max(StartDate) for each MeterNumber and then try to get records where startdate, enddate & RateCode is different for specific AccountNumber. Sample data script as ...
tt0206's user avatar
  • 847

1
2 3 4 5
367