Viewing 15 posts - 91 through 105 (of 295 total)
If they've asked to be able to search for two area codes at a time, it won't be long before they ask to search for 3 or 4 or more....
October 1, 2020 at 11:03 am
We do the same as others have mentioned. Load into a table where the columns are wide nvarchar and then validate afterwards. We use TRY_CAST and TRY_PARSE to check whether...
September 29, 2020 at 10:29 am
My guess at the logic is that the seats are in pairs. Single children can sit anywhere there is a space, but siblings need to sit together, so their seat...
September 4, 2020 at 12:43 pm
It would be nice if the object explorer in SSMS had a node under each database for triggers so that you could see them all in one place.
August 13, 2020 at 1:07 pm
I think 2FA can be good when it's well implemented, but a chore when it's not done well. For example, my bank sends a PIN to my mobile when I...
August 6, 2020 at 12:41 pm
Another point to consider; if the primary key is also a foreign key in other tables, there could be a significant impact in using one that takes up 16 bytes...
July 24, 2020 at 2:40 pm
All our SQL data changes have to be made via a script. The script is written by the developer and peer reviewed before being executed by the Release team. Obviously...
July 22, 2020 at 2:26 pm
INSERT INTO table2
SELECT col1, col2 FROM table1 t1
EXCEPT
SELECT col1, col2 FROM table2 t2
July 17, 2020 at 2:53 pm
I very proudly stuck with my "stupid" phone for many years precisely because the charge lasted over a week. All it could do was handle texts and phone calls (and...
July 17, 2020 at 12:56 pm
If the text part could appear before the number part, you could use Alan Burstein's pattern exclude function thus.
create table #temp
(
columnTextNumbers nvarchar(50)
)
insert into #temp (columnTextNumbers)
values
('3.5A'),
('5.50kg'),
('35.70kg'),
('9m'),
('£4.99')
select...
June 30, 2020 at 2:11 pm
My boss has been very proactive in this area - we already had a weekly "Tea and biscuits" meeting, but he's moved that to Teams and we join in from...
June 11, 2020 at 3:13 pm
I'd suggest that you look at some of the Stairway articles on this site. All the ones I've read have been extremely well-written. You can pick topics that cover areas...
May 12, 2020 at 3:20 pm
As the database is using a case-sensitive collation, I don't see why the 2nd option wouldn't work.
April 24, 2020 at 8:41 am
To find out which values are causing the problem, you could use TRY_CAST(YourColumn AS DATE). The values that can't be cast will be null in the new table. Then you...
April 8, 2020 at 10:47 am
Viewing 15 posts - 91 through 105 (of 295 total)