Showing posts with the label sql-server

[FIXED] SQL query result is not showing in R odbc

Issue I am trying to run a simple query using R which is listed below. I am connected to odbc and i…

[FIXED] SQL count using column of date before and after

Issue ID type center;">date Odertime 1 A 2022-03-02 2021-06-23 2 A 2022…

[FIXED] How to upsert pandas DataFrame to Microsoft SQL Server table?

Issue I would like to upsert my pandas DataFrame into a SQL Server table. This question has a work…

[FIXED] Finding unique number of logins from a database based on two columns

Issue I have a database with information of when users have logged into my app. There are two colum…

[FIXED] Can't understand why SQL table won't update on statement

Issue In a survey, a row with the question name 3a should equal the sum of the responses from the …

[FIXED] Any way to edit data on MS-Access form using SQL View with two tables

Issue From what I've read it should be possible to edit data described by a view if the data be…

[FIXED] Get data from tables that I have from another query

Issue I'm trying to get data from all tables that I have from another query as follows: DECLAR…

[FIXED] How do I prevent malicious SQL injection attacks while allowing benign SQL injection?

Issue I'm writing an ASP.NET MVC4 application which ultimately builds a SQL SELECT statement dy…

[FIXED] Parse XML file in SQL with duplicated Tags

Issue I'm trying to flatten my XML file however there are complications when there are duplicat…

[FIXED] What is the best way to store a large amount of text in a SQL server table?

Issue What is the best way to store a large amount of text in a table in SQL server? Is varchar(m…

[FIXED] Pehtaho DI v9.3 can't connect to MS SQL Server DB 19

Issue I have a problem with the connection to SQL Server via Pentaho DI. I downloaded the latest ve…

[FIXED] How to insert empty string (' ') to decimal or numeric in SQL Server?

Issue Is there a way to insert an empty string (' ') into a column of type decimal ? This…

[FIXED] WHILE loop to get 2 blocks of XML

Issue With T-SQL (I cannot use C# or any other scripting language due to application limitations) I…

[FIXED] Script for TSQL

Issue Please help me write a Transact-SQL script. There is a table with conditional columns PK_ID …

[FIXED] SQL query to search for lowercase strings

Issue I want a SQL query which can search for a certain word, but only in lowercase. I am trying…

[FIXED] Select min (datetime) and max(datetime)

Issue My data is like this | id. | date. | datetime. | |:---- |:------:| -----:| | 123 | 2022-01…

[FIXED] Return Only Top Row of SQL Server from duplicated data but different id

Issue I have the below table: ID|NAME|CREATED |TYPE|CARD_NO| =============================…

[FIXED] Insert rows into SQL Server table with a primary key with SSIS

Issue I have an SSIS package that I use to pass data from an Excel workbook into the SQL Server tab…

[FIXED] Retrieve a specific DB project and its tables from SQL Server in R

Issue I am new to using SQL Server from RStudio. I am connected to SQL Server from RStudio and the …

[FIXED] Invalid object name in SQL Management Studio

Issue I've been creating a database for class and I'm having trouble seeing my tables. I ha…