id
stringlengths
36
36
question_id
int64
36
27.5M
chunk_index
int32
0
29
embedding_text
stringlengths
37
16.8k
dense_tokens
int32
11
1.02k
sparse_tokens
int32
10
1.02k
languages
listlengths
1
5
tags
listlengths
1
5
payload_json
stringlengths
405
563
dense
list
sparse_indices
listlengths
8
447
sparse_values
listlengths
8
447
ad8edf44-d421-5543-beaa-aaa2ff35fff4
36
0
Title: Check for changes to an SQL Server table? How can I monitor an SQL Server database for changes to a table without using triggers or modifying the structure of the database in any way? My preferred programming environment is .NET and C#. I'd like to be able to support any SQL Server 2000 SP4 or newer. My appli...
309
334
[ "sql" ]
[ "sql", "sql-server", "datatable", "rdbms" ]
{"accepted_answer_id":352,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T12:35:56.917000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2023-03-14T10:41:09.997000+00:00","last_edit_date":"2016-11-30T07:50:37.517000+00:00","q...
[ -0.0125732421875, -0.0302886962890625, -0.0006623268127441406, -0.011077880859375, 0.03375244140625, -0.03424072265625, -0.0070037841796875, 0.0114898681640625, -0.0028591156005859375, 0.017120361328125, -0.035186767578125, -0.0093994140625, 0.01593017578125, -0.00652313232421875, -0.015...
[ 7, 10, 41, 47, 100, 136, 191, 384, 449, 532, 617, 831, 1193, 1774, 1884, 2053, 2811, 2965, 3311, 3576, 3647, 3917, 4078, 4263, 4343, 4527, 4904, 6755, 8060, 8305, 8575, 10321, 11249, 11675, 11907, 12047, 12601, 12765, 12983, 12996, 1438...
[ 0.00341796875, 0.0294189453125, 0.0712890625, 0.1904296875, 0.1376953125, 0.0196533203125, 0.0830078125, 0.1005859375, 0.03125, 0.004638671875, 0.08203125, 0.04150390625, 0.0849609375, 0.08203125, 0.048828125, 0.029541015625, 0.07861328125, 0.1103515625, 0.010498046875, 0.14648...
0a9de65d-f492-532f-9641-b757ce6bb985
85
0
Title: Flat file databases What are the best practices around creating flat file database structures in PHP? A lot of more matured PHP flat file frameworks out there which I attempt to implement SQL-like query syntax which is over the top for my purposes in most cases. (I would just use a database at that point). ...
87
94
[ "php", "sql" ]
[ "php", "sql", "database", "flat-file" ]
{"accepted_answer_id":154,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":"2015-10-22T13:43:51.340000+00:00","creation_date":"2008-08-01T14:19:52.510000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["php","sql"],"last_activity_date":"2022-03-07T02:25:38.080000+00:00","last_edit_date":"...
[ 0.011260986328125, -0.03399658203125, -0.00978851318359375, 0.0033416748046875, 0.0294342041015625, -0.01213836669921875, -0.00021898746490478516, 0.007358551025390625, -0.01389312744140625, 0.005451202392578125, -0.036590576171875, 0.01641845703125, 0.0145416259765625, -0.0206451416015625...
[ 7, 23, 41, 645, 1286, 1294, 1810, 2663, 2684, 2685, 2806, 2965, 4127, 4527, 5062, 5915, 6002, 6275, 10932, 11435, 18151, 19336, 23718, 27650, 29479, 31251, 41361, 45646, 47302, 48962, 49878, 50218, 60042, 63399, 66139, 80866, 81887, 86531, ...
[ 0.027587890625, 0.010498046875, 0.0654296875, 0.045654296875, 0.0244140625, 0.035400390625, 0.013427734375, 0.07177734375, 0.04541015625, 0.00439453125, 0.02001953125, 0.119140625, 0.0263671875, 0.0419921875, 0.09765625, 0.032958984375, 0.06982421875, 0.0281982421875, 0.025512695...
abf2356b-efc9-5904-a21d-0fc01ee65b2b
109
0
Title: Decoding T-SQL CAST in C#/VB.NET Recently our site has been deluged with the resurgence of the Asprox botnet SQL injection attack. Without going into details, the attack attempts to execute SQL code by encoding the T-SQL commands in an ASCII encoded BINARY string. It looks something like this: DECLARE%20@S%20...
733
896
[ "c#", "sql", "vb.net" ]
[ "c#", "sql", "vb.net", "ascii", "hex" ]
{"accepted_answer_id":2585,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T15:23:05.190000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","sql","vb.net"],"last_activity_date":"2019-02-10T22:11:00.017000+00:00","last_edit_date":"2019-01-20T13:49:56.7...
[ -0.0013647079467773438, -0.0172119140625, 0.0011205673217773438, -0.0007009506225585938, 0.018035888671875, -0.034881591796875, 0.00002491474151611328, 0.0015277862548828125, -0.009552001953125, 0.0301513671875, -0.043670654296875, -0.01270294189453125, -0.01959228515625, -0.02386474609375...
[ 4, 5, 6, 7, 8, 9, 10, 13, 15, 16, 18, 20, 22, 23, 25, 27, 38, 39, 47, 53, 54, 58, 64, 67, 70, 71, 74, 83, 87, 91, 98, 99, 100, 110, 111, 116, 126, 132, 136, 141, 184, 214, 221, 237, 254, 262, 268, 272, 284, 294, 313,...
[ 0.031982421875, 0.012939453125, 0.01318359375, 0.011962890625, 0.16015625, 0.115234375, 0.012451171875, 0.012451171875, 0.012451171875, 0.01318359375, 0.013427734375, 0.01220703125, 0.06396484375, 0.037109375, 0.0126953125, 0.01171875, 0.0576171875, 0.030029296875, 0.012451171875...
c4302bd2-1992-5fcb-8f9c-45d4776d2e01
120
0
Title: ASP.NET Site Maps Does anyone have experience creating SQL-based ASP.NET site-map providers? I have the default XML file web.sitemap working properly with my Menu and SiteMapPath controls, but I'll need a way for the users of my site to create and modify pages dynamically. I need to tie page viewing permiss...
80
91
[ "sql" ]
[ "sql", "asp.net", "xml", "sitemap" ]
{"accepted_answer_id":null,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-01T15:50:08.537000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2020-09-21T19:13:30.407000+00:00","last_edit_date":"2020-01-06T23:17:24.307000+00:00",...
[ -0.012237548828125, 0.0117645263671875, 0.0012054443359375, -0.003765106201171875, 0.0165863037109375, -0.012054443359375, -0.046600341796875, 0.0157623291015625, 0.005527496337890625, 0.00946807861328125, -0.023406982421875, -0.005527496337890625, 0.01105499267578125, 0.0174102783203125, ...
[ 7, 237, 678, 765, 1181, 1467, 1764, 2811, 3871, 3917, 4817, 5426, 5570, 6226, 9191, 10519, 11090, 11435, 16981, 17777, 20697, 20897, 21455, 28282, 35672, 37967, 40383, 48962, 49434, 62346, 72095, 77007, 80866, 81450, 84079, 92537, 101790, 103...
[ 0.0546875, 0.001953125, 0.03125, 0.05810546875, 0.0068359375, 0.0693359375, 0.1474609375, 0.083984375, 0.058837890625, 0.0546875, 0.1005859375, 0.052978515625, 0.068359375, 0.1416015625, 0.1083984375, 0.095703125, 0.1376953125, 0.1357421875, 0.169921875, 0.1435546875, 0.07714...
c5c8d45e-09e3-58ea-829d-3bcd98bd00d5
308
0
Title: Is there a version control system for database structure changes? I often run into the following problem. I work on some changes to a project that require new tables or columns in the database. I make the database modifications and continue my work. Usually, I remember to write down the changes so that they c...
181
193
[ "sql" ]
[ "sql", "database", "oracle-database", "version-control" ]
{"accepted_answer_id":360,"answer_count":22,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-02T01:52:54.653000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2023-08-03T09:58:38.720000+00:00","last_edit_date":"2016-09-30T04:32:25.543000+00:00","...
[ 0.0185394287109375, -0.020660400390625, -0.0125732421875, -0.01357269287109375, 0.01464080810546875, -0.0155792236328125, -0.01186370849609375, 0.033294677734375, 0.023956298828125, 0.038238525390625, -0.033538818359375, 0.031158447265625, 0.01605224609375, 0.0173492431640625, -0.0108566...
[ 7, 10, 19, 32, 47, 70, 83, 87, 100, 110, 316, 517, 678, 707, 1542, 1632, 2071, 2174, 2356, 2685, 2965, 2967, 3365, 3444, 3525, 3714, 3934, 4263, 4488, 5426, 6226, 6782, 6867, 6957, 7068, 7565, 11343, 11389, 11675, 13452, 16265, 16648,...
[ 0.03076171875, 0.1103515625, 0.0751953125, 0.0078125, 0.010498046875, 0.00244140625, 0.0771484375, 0.023193359375, 0.119140625, 0.1259765625, 0.1552734375, 0.010009765625, 0.072265625, 0.017333984375, 0.220703125, 0.1162109375, 0.0751953125, 0.076171875, 0.1689453125, 0.1123046...
f54dc076-4522-5bce-b9b2-9f73b1ebcdbe
594
0
Title: cx_Oracle: How do I iterate over a result set? There are several ways to iterate over a result set. What are the tradeoff of each?
36
43
[ "python", "sql" ]
[ "python", "sql", "database", "oracle-database", "cx-oracle" ]
{"accepted_answer_id":595,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T01:15:08.507000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["python","sql"],"last_activity_date":"2016-10-15T20:47:11.027000+00:00","last_edit_date":"2016-10-14T18:15:27.420000+...
[ -0.00896453857421875, -0.0204315185546875, 0.003696441650390625, -0.01448822021484375, 0.004039764404296875, -0.041351318359375, 0.00412750244140625, 0.017578125, 0.01995849609375, 0.00801849365234375, -0.0216217041015625, 0.0092620849609375, 0.01027679443359375, 0.01235198974609375, 0.0...
[ 10, 17, 47, 54, 67, 70, 87, 219, 425, 645, 670, 5423, 8560, 11030, 11249, 12638, 16713, 16750, 40368, 48322, 48962, 52350 ]
[ 0.0211181640625, 0.08984375, 0.0546875, 0.048583984375, 0.1328125, 0.005615234375, 0.061767578125, 0.0595703125, 0.1083984375, 0.1982421875, 0.04296875, 0.21484375, 0.28125, 0.1142578125, 0.10205078125, 0.035400390625, 0.1865234375, 0.2109375, 0.10546875, 0.1396484375, 0.0179...
a510f109-b145-51c3-acc2-cb5f4a214cfe
644
0
Title: Swap unique indexed column values in database I have a database table and one of the fields (not the primary key) is having a unique index on it. Now I want to swap values under this column for two rows. How could this be done? Two hacks I know are: Delete both rows and re-insert them. Update rows with som...
116
130
[ "sql" ]
[ "sql", "database" ]
{"accepted_answer_id":665,"answer_count":12,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-03T09:55:26.257000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-11-22T01:32:31.887000+00:00","last_edit_date":"2018-11-22T01:32:31.887000+00:00","...
[ 0.0275115966796875, -0.0187835693359375, 0.01551055908203125, 0.0004107952117919922, 0.028350830078125, 0.00902557373046875, 0.0226593017578125, -0.0102386474609375, 0.005756378173828125, 0.0174560546875, -0.02423095703125, 0.02484130859375, -0.0232696533203125, -0.012603759765625, 0.024...
[ 7, 19, 23, 47, 70, 73, 87, 98, 100, 136, 254, 262, 297, 316, 765, 903, 1379, 1632, 1810, 2967, 3365, 3444, 3714, 3789, 4358, 4966, 5809, 6626, 8561, 10869, 11249, 14240, 15044, 15555, 16940, 19441, 22799, 23180, 28350, 28641, 29806, 3...
[ 0.06298828125, 0.0673828125, 0.05029296875, 0.1005859375, 0.0177001953125, 0.03173828125, 0.0201416015625, 0.0269775390625, 0.0966796875, 0.00390625, 0.1533203125, 0.06884765625, 0.109375, 0.16015625, 0.008056640625, 0.0625, 0.203125, 0.013427734375, 0.0152587890625, 0.05712890...
156a5b2c-6d09-5da4-8bca-3676d7f4764e
1,042
0
Title: Why doesn't SQL Full Text Indexing return results for words containing #? For instance, my query is like the following using SQL Server 2005: SELECT * FROM Table WHERE FREETEXT(SearchField, 'c#') I have a full text index defined to use the column SearchField which returns results when using: SELECT * FRO...
111
128
[ "sql" ]
[ "sql", "sql-server", "sql-server-2005", "indexing", "full-text-search" ]
{"accepted_answer_id":1061,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T05:51:56.683000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2014-11-25T20:40:10.517000+00:00","last_edit_date":"2014-11-25T20:40:10.517000+00:00","...
[ 0.01082611083984375, -0.045440673828125, 0.01016998291015625, 0.00958251953125, 0.0274505615234375, -0.0004215240478515625, -0.029571533203125, 0.01016998291015625, -0.0177459716796875, 0.00356292724609375, -0.02508544921875, -0.001316070556640625, 0.03216552734375, -0.01117706298828125, ...
[ 18, 41, 70, 83, 100, 214, 316, 468, 618, 1294, 1884, 3365, 4078, 4393, 4488, 4527, 4904, 5361, 6159, 6755, 7986, 9312, 18822, 19388, 22027, 22687, 24129, 26785, 30646, 31330, 31471, 33086, 34153, 36917, 44084, 48962, 50339, 57692, 61607, ...
[ 0.0751953125, 0.07421875, 0.001953125, 0.0230712890625, 0.011474609375, 0.039794921875, 0.03515625, 0.13671875, 0.12109375, 0.046142578125, 0.042724609375, 0.002197265625, 0.162109375, 0.08642578125, 0.05029296875, 0.019287109375, 0.0712890625, 0.0849609375, 0.09716796875, 0.01...
d51ef73a-b15a-5367-abc1-18b7a7396cf8
1,108
0
Title: How does database indexing work in reality? Given that indexing is so important, as your data set increases in size, how does indexing work at a database-agnostic level? For information on queries to index a field, check out How do I index a database column?.
59
68
[ "sql" ]
[ "sql", "database", "performance", "indexing", "database-indexes" ]
{"accepted_answer_id":1130,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":"2022-03-09T03:42:38.413000+00:00","creation_date":"2008-08-04T10:07:12.673000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2026-03-04T20:49:08.523000+00:00","last_edit_date":"2026-0...
[ 0.0140533447265625, -0.0021038055419921875, -0.0214691162109375, -0.0251312255859375, 0.01410675048828125, -0.02288818359375, -0.0171966552734375, -0.005126953125, 0.03961181640625, -0.0200347900390625, -0.025848388671875, 0.033447265625, 0.00337982177734375, -0.0240631103515625, 0.04080...
[ 12, 19, 23, 32, 41, 47, 54, 83, 87, 99, 214, 221, 237, 238, 316, 450, 2053, 2703, 2895, 3365, 3642, 4488, 4677, 5423, 5526, 10484, 11249, 12765, 13267, 14602, 17366, 44457, 48962, 50081, 51312, 63262, 63399, 77878 ]
[ 0.012939453125, 0.01025390625, 0.08203125, 0.0159912109375, 0.06689453125, 0.08154296875, 0.06005859375, 0.012939453125, 0.0537109375, 0.0517578125, 0.181640625, 0.087890625, 0.0322265625, 0.08740234375, 0.0849609375, 0.012451171875, 0.05029296875, 0.033203125, 0.1572265625, 0....
54f66c0a-dfaa-59dd-bd4c-3d872728b874
1,156
0
Title: How do I index a database column? How do I index a database column in different database servers? For an outline of how indexing works check out: How does database indexing work?
41
48
[ "sql" ]
[ "sql", "database", "indexing" ]
{"accepted_answer_id":1157,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T11:21:26.567000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2026-03-07T18:11:09.403000+00:00","last_edit_date":"2026-01-31T23:51:12.047000+00:00","...
[ -0.004856109619140625, -0.0195465087890625, -0.00905609130859375, -0.01371002197265625, 0.0272979736328125, -0.02301025390625, -0.026458740234375, 0.00408172607421875, 0.019317626953125, -0.0224151611328125, -0.01751708984375, 0.040771484375, 0.0022640228271484375, 0.0013332366943359375, ...
[ 10, 12, 19, 23, 32, 54, 87, 214, 316, 1810, 2256, 3365, 3642, 4488, 10723, 11249, 12765, 12921, 14602, 43240, 48962, 63262, 63399 ]
[ 0.0194091796875, 0.0107421875, 0.0625, 0.039306640625, 0.042236328125, 0.1044921875, 0.09912109375, 0.1123046875, 0.1611328125, 0.0107421875, 0.06201171875, 0.1494140625, 0.057373046875, 0.08203125, 0.1240234375, 0.1162109375, 0.0009765625, 0.1064453125, 0.04052734375, 0.104003...
a3824f8c-b6b3-54d9-8c6e-6becdbd771bf
1,284
0
Title: Catching SQL Injection and other Malicious Web Requests I am looking for a tool that can detect malicious requests (such as obvious SQL injection gets or posts) and will immediately ban the IP address of the requester/add to a blacklist. I am aware that in an ideal world our code should be able to handle such r...
190
218
[ "sql" ]
[ "sql", "xss", "sql-injection" ]
{"accepted_answer_id":null,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T14:40:58.050000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2017-10-18T22:01:40.770000+00:00","last_edit_date":"2016-09-11T20:49:24.593000+00:00",...
[ -0.0079345703125, -0.01450347900390625, -0.0198974609375, -0.00518035888671875, 0.015625, -0.02935791015625, -0.004856109619140625, -0.0251007080078125, 0.00470733642578125, 0.0122528076171875, -0.06158447265625, 0.0112457275390625, 0.01953125, -0.0122528076171875, 0.01154327392578125, ...
[ 4, 7, 9, 10, 23, 39, 47, 56, 64, 70, 83, 99, 100, 111, 142, 186, 214, 236, 257, 360, 442, 450, 538, 678, 683, 707, 831, 853, 1221, 1295, 1467, 1661, 1764, 1830, 1884, 3789, 4002, 4028, 4565, 4599, 5608, 5915, 6044, 6097, 6397, ...
[ 0.006591796875, 0.006591796875, 0.005126953125, 0.039794921875, 0.0306396484375, 0.007080078125, 0.0634765625, 0.09228515625, 0.02587890625, 0.005859375, 0.006591796875, 0.00634765625, 0.08984375, 0.005126953125, 0.006591796875, 0.005615234375, 0.006591796875, 0.1708984375, 0.002...
28f902f3-e0da-50e5-9009-0b35e7015a07
1,451
0
Title: What is the best way to handle multiple permission types? I often encounter the following scenario where I need to offer many different types of permissions. I primarily use ASP.NET / VB.NET with SQL Server 2000. Scenario I want to offer a dynamic permission system that can work on different parameters. Let...
374
437
[ "sql" ]
[ "sql", "permissions" ]
{"accepted_answer_id":1477,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-04T17:46:28.207000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2021-10-25T11:50:34.877000+00:00","last_edit_date":"2020-08-13T10:47:22.800000+00:00","...
[ 0.015655517578125, 0.01165008544921875, 0.01230621337890625, -0.00522613525390625, 0.0191192626953125, 0.0018739700317382812, -0.00823974609375, 0.0216217041015625, 0.0201873779296875, -0.015167236328125, -0.03033447265625, 0.004360198974609375, 0.0048675537109375, 0.0020599365234375, 0....
[ 4, 5, 7, 8, 10, 15, 16, 19, 23, 25, 39, 47, 54, 70, 71, 87, 98, 100, 106, 111, 116, 117, 136, 214, 284, 291, 294, 316, 360, 450, 563, 581, 601, 621, 642, 674, 678, 707, 756, 765, 831, 841, 903, 1062, 1264, 1284, 1369, 1374...
[ 0.0255126953125, 0.0263671875, 0.1201171875, 0.02587890625, 0.0264892578125, 0.0262451171875, 0.0260009765625, 0.025390625, 0.00146484375, 0.025390625, 0.044921875, 0.05029296875, 0.0087890625, 0.025146484375, 0.021240234375, 0.01513671875, 0.02490234375, 0.0252685546875, 0.02880...
ee72bc2d-f50d-5a49-9241-a442ac5457cf
2,120
0
Title: Convert HashBytes to VarChar I want to get the MD5 Hash of a string value in SQL Server 2005. I do this with the following command: SELECT HashBytes('MD5', 'HelloWorld') However, this returns a VarBinary instead of a VarChar value. If I attempt to convert 0x68E109F0F40CA72A15E05CC22786F8E6 into a VarChar I ...
169
148
[ "sql" ]
[ "sql", "sql-server" ]
{"accepted_answer_id":2382,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T11:49:11.360000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2026-03-26T17:23:41.307000+00:00","last_edit_date":"2017-05-23T11:55:03.917000+00:00","...
[ 0.01387786865234375, -0.04327392578125, 0.0114288330078125, -0.021026611328125, 0.01308441162109375, -0.0245819091796875, -0.007213592529296875, 0.0038967132568359375, -0.007732391357421875, 0.018096923828125, -0.0111846923828125, 0.0005617141723632812, -0.021392822265625, -0.0165100097656...
[ 10, 23, 47, 70, 73, 111, 425, 571, 647, 757, 758, 841, 910, 919, 1298, 1636, 1639, 1657, 2046, 3323, 3405, 3444, 3934, 4015, 5059, 6635, 6755, 7997, 8194, 11549, 12045, 12825, 13133, 13817, 16028, 22687, 25383, 25632, 29806, 30646, 3263...
[ 0.010009765625, 0.020751953125, 0.0712890625, 0.036376953125, 0.111328125, 0.052734375, 0.014404296875, 0.0546875, 0.0155029296875, 0.0245361328125, 0.2080078125, 0.078125, 0.0947265625, 0.0439453125, 0.0213623046875, 0.1298828125, 0.0228271484375, 0.035400390625, 0.0830078125, ...
e163508e-2639-5baf-9d1c-0713c1d92115
2,647
0
Title: How do I split a delimited string so I can access individual items? Using SQL Server, how do I split a string so I can access item x? Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?
67
68
[ "sql" ]
[ "sql", "sql-server", "t-sql", "split" ]
{"accepted_answer_id":2657,"answer_count":46,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T18:15:47.727000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2025-10-23T12:12:01.067000+00:00","last_edit_date":"2022-06-13T15:19:11.710000+00:00",...
[ 0.0027008056640625, -0.0228729248046875, 0.01934814453125, -0.0275115966796875, 0.0102386474609375, -0.01068115234375, -0.01413726806640625, -0.002292633056640625, -0.0168304443359375, 0.013885498046875, -0.035675048828125, -0.0221099853515625, -0.00992584228515625, -0.0133819580078125, ...
[ 8, 10, 54, 87, 99, 106, 221, 297, 345, 390, 831, 841, 1022, 3642, 4939, 5608, 6953, 11249, 11651, 13817, 17203, 22687, 30646, 32628, 35735, 37700, 48962, 55769, 63262, 65450, 79315, 80866, 93343, 98385 ]
[ 0.0849609375, 0.0286865234375, 0.07421875, 0.0751953125, 0.0439453125, 0.07666015625, 0.06640625, 0.07275390625, 0.04736328125, 0.04150390625, 0.091796875, 0.02880859375, 0.091796875, 0.09765625, 0.171875, 0.035400390625, 0.010009765625, 0.109375, 0.12890625, 0.1435546875, 0....
027e182e-77dd-597e-9a20-3d7d0b273ae5
2,702
0
Title: How do I use T-SQL Group By I know I need to have (although I don't know why) a GROUP BY clause on the end of a SQL query that uses any aggregate functions like count, sum, avg, etc: SELECT count(userID), userName FROM users GROUP BY userName When else would GROUP BY be useful, and what are the performance ...
82
94
[ "sql" ]
[ "sql", "sql-server", "group-by" ]
{"accepted_answer_id":2736,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T18:55:35.963000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-12-01T20:57:37.357000+00:00","last_edit_date":"2016-12-01T20:57:37.357000+00:00","...
[ 0.0277099609375, -0.009063720703125, -0.006305694580078125, 0.00829315185546875, 0.032684326171875, -0.0124969482421875, 0.02618408203125, 0.0065460205078125, 0.00876617431640625, 0.002620697021484375, -0.01515960693359375, 0.0198974609375, -0.00870513916015625, -0.0174102783203125, 0.01...
[ 9, 10, 13, 41, 54, 70, 87, 98, 177, 185, 186, 384, 765, 1294, 2499, 3311, 3564, 3714, 3871, 4527, 6755, 7146, 10554, 10760, 11249, 14847, 15400, 23718, 32354, 38937, 41274, 48962, 54529, 57766, 61607, 65918, 70731, 72095, 80234, 80866, ...
[ 0.0216064453125, 0.0341796875, 0.09765625, 0.091796875, 0.0419921875, 0.0174560546875, 0.0286865234375, 0.0439453125, 0.05615234375, 0.123046875, 0.0238037109375, 0.1240234375, 0.059326171875, 0.1044921875, 0.0145263671875, 0.2470703125, 0.1435546875, 0.030029296875, 0.1103515625...
b53155ae-9b07-5246-8107-0b0907485e4d
2,811
0
Title: SQL Server 2005 For XML Explicit - Need help formatting I have a table with a structure like the following: LocationID AccountNumber long-guid-here 12345 long-guid-here 54321 To pass into another stored procedure, I need the XML to look like this: <root> <clientID>12345</client...
291
276
[ "sql" ]
[ "sql", "xml", "sql-server-2005", "formatting", "for-xml" ]
{"accepted_answer_id":2825,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T20:35:56.150000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2020-12-16T21:16:50.043000+00:00","last_edit_date":"2020-12-16T21:16:50.043000+00:00","...
[ -0.01151275634765625, -0.01139068603515625, 0.01049041748046875, 0.0067138671875, 0.0019931793212890625, -0.01324462890625, 0.00211334228515625, 0.0173797607421875, 0.003192901611328125, 0.03741455078125, 0.0032978057861328125, 0.01558685302734375, -0.015045166015625, 0.032135009765625, ...
[ 38, 47, 71, 106, 237, 418, 427, 532, 765, 903, 963, 1234, 1326, 1530, 1884, 1916, 2060, 2965, 3117, 3871, 3934, 4078, 4343, 4358, 4989, 5036, 6371, 6713, 6755, 7146, 7909, 8983, 9384, 10617, 15363, 15700, 16087, 17368, 18444, 19048, 206...
[ 0.0223388671875, 0.0157470703125, 0.009521484375, 0.1005859375, 0.0185546875, 0.015380859375, 0.044189453125, 0.134765625, 0.0201416015625, 0.08447265625, 0.047119140625, 0.1455078125, 0.12109375, 0.076171875, 0.115234375, 0.09765625, 0.068359375, 0.10546875, 0.1494140625, 0.10...
d88f6c5f-45c6-53ea-86a5-4c0c29731adc
2,840
0
Title: Paging SQL Server 2005 Results How do I page results in SQL Server 2005? I tried it in SQL Server 2000, but there was no reliable way to do this. I'm now wondering if SQL Server 2005 has any built in method? What I mean by paging is, for example, if I list users by their username, I want to be able to only ...
114
94
[ "sql" ]
[ "sql", "sql-server-2005", "pagination" ]
{"accepted_answer_id":2843,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-05T20:57:00.787000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2024-08-30T14:52:15.343000+00:00","last_edit_date":"2024-08-30T14:52:15.343000+00:00","...
[ -0.0089263916015625, -0.0274505615234375, 0.0286407470703125, -0.0400390625, 0.01096343994140625, -0.01654052734375, -0.0270843505859375, 0.02947998046875, 0.005184173583984375, 0.01108551025390625, -0.0268402099609375, 0.006801605224609375, 0.0252838134765625, 0.025177001953125, 0.01144...
[ 23, 47, 54, 87, 209, 214, 390, 2070, 2499, 3444, 3917, 4078, 4734, 5117, 5303, 8341, 9191, 11249, 11627, 11737, 19048, 22687, 29459, 30646, 37842, 38937, 48962, 50339, 55300, 72095, 80866, 88303, 88922, 115923, 146104, 149016, 215543 ]
[ 0.0869140625, 0.03271484375, 0.04541015625, 0.0634765625, 0.09375, 0.1455078125, 0.021484375, 0.2275390625, 0.006103515625, 0.0673828125, 0.03173828125, 0.251953125, 0.05029296875, 0.044921875, 0.130859375, 0.2099609375, 0.2392578125, 0.0177001953125, 0.0732421875, 0.0289306640...
d02f1b73-82e7-551d-9cee-de3bbafe630f
3,196
0
Title: SQL query, count and group by If I have data like this: Key Name 1 Dan 2 Tom 3 Jon 4 Tom 5 Sam 6 Dan What is the SQL query to bring back the records where Name is repeated 2 or more times? So the result I would want is Tom Dan
85
63
[ "sql" ]
[ "sql" ]
{"accepted_answer_id":3197,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T09:00:58.063000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2022-01-18T11:02:47.973000+00:00","last_edit_date":"2020-12-16T21:15:54.893000+00:00","...
[ 0.03167724609375, -0.019378662109375, 0.0090789794921875, 0.001995086669921875, 0.021942138671875, 0.01450347900390625, 0.020233154296875, -0.0110931396484375, 0.007801055908203125, 0.0096282958984375, -0.0258331298828125, 0.021697998046875, 0.002254486083984375, 0.0031223297119140625, 0...
[ 4, 41, 47, 70, 83, 87, 106, 116, 136, 138, 190, 201, 297, 305, 390, 707, 765, 903, 1286, 1294, 1884, 2053, 2290, 2806, 3362, 3444, 4263, 4420, 4865, 7440, 8352, 15757, 16750, 19095, 20028, 21115, 21240, 26824, 48962, 54529, 80866, 115...
[ 0.028076171875, 0.1845703125, 0.06494140625, 0.07568359375, 0.1357421875, 0.038330078125, 0.07763671875, 0.16796875, 0.0830078125, 0.0927734375, 0.1220703125, 0.12109375, 0.01171875, 0.142578125, 0.173828125, 0.0986328125, 0.048095703125, 0.0693359375, 0.1748046875, 0.19921875,...
67d6d436-b835-51fc-a95d-90d1ce6795e1
3,272
0
Title: Timer-based event triggers I am currently working on a project with specific requirements. A brief overview of these are as follows: Data is retrieved from external webservices Data is stored in SQL 2005 Data is manipulated via a web GUI The windows service that communicates with the web services has ...
364
394
[ "sql" ]
[ "sql", "web-services", "service", "triggers", "timer" ]
{"accepted_answer_id":5101,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T10:43:16.720000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2012-01-31T14:26:13.217000+00:00","last_edit_date":"2012-01-31T14:26:13.217000+00:00","...
[ 0.003509521484375, -0.00716400146484375, 0.0074310302734375, 0.0028934478759765625, 0.0034656524658203125, -0.028076171875, -0.01491546630859375, 0.013153076171875, 0.0032596588134765625, -0.00004774332046508789, -0.04180908203125, 0.01157379150390625, 0.033111572265625, 0.0020122528076171...
[ 7, 56, 98, 110, 160, 163, 202, 214, 678, 903, 1181, 1467, 1733, 1829, 1884, 2806, 3299, 3444, 3513, 3996, 4078, 4173, 4343, 4358, 4516, 4568, 4692, 5527, 5646, 5809, 6626, 7279, 9229, 9384, 9433, 11374, 11476, 11737, 11782, 11809, 13320...
[ 0.03466796875, 0.107421875, 0.026123046875, 0.04833984375, 0.1103515625, 0.004150390625, 0.03955078125, 0.048583984375, 0.0791015625, 0.006591796875, 0.080078125, 0.0712890625, 0.1650390625, 0.013427734375, 0.0517578125, 0.009765625, 0.1953125, 0.045654296875, 0.003662109375, 0...
d8267445-e123-5e1a-9f9b-da6a1606142f
3,432
0
Title: Multiple Updates in MySQL I know that you can insert multiple rows at once, is there a way to update multiple rows at once (as in, in one query) in MySQL? Edit: For example I have the following Name id Col1 Col2 Row1 1 6 1 Row2 2 2 3 Row3 3 9 5 Row4 4 16 8 I want to ...
194
164
[ "sql" ]
[ "mysql", "sql", "sql-update" ]
{"accepted_answer_id":3466,"answer_count":21,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T14:12:09.903000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2025-02-24T13:07:40.730000+00:00","last_edit_date":"2013-06-25T20:03:23.627000+00:00",...
[ -0.00945281982421875, -0.012969970703125, 0.006000518798828125, 0.01381683349609375, 0.04168701171875, 0.004604339599609375, 0.0104827880859375, -0.0169677734375, 0.01351165771484375, 0.044830322265625, -0.030548095703125, 0.037078857421875, -0.00945281982421875, -0.02557373046875, 0.007...
[ 7, 10, 23, 41, 47, 83, 106, 116, 138, 190, 201, 209, 304, 305, 363, 382, 418, 427, 483, 611, 617, 756, 765, 831, 1632, 2685, 3444, 3447, 3714, 3917, 3934, 8705, 11554, 15555, 15757, 19335, 23180, 24145, 25632, 27781, 28350, 28641, 3...
[ 0.0888671875, 0.058837890625, 0.103515625, 0.1376953125, 0.0419921875, 0.01953125, 0.0458984375, 0.034423828125, 0.0791015625, 0.061767578125, 0.08642578125, 0.0751953125, 0.0654296875, 0.0751953125, 0.002685546875, 0.095703125, 0.051025390625, 0.11328125, 0.0615234375, 0.07666...
ba7d4a50-fa1e-5f49-90c4-830c7f9aeab0
3,567
0
Title: SQL query for a database scheme In SQL Server how do you query a database to bring back all the tables that have a field of a specific name?
35
37
[ "sql" ]
[ "sql", "sql-server" ]
{"accepted_answer_id":3578,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T15:41:13.827000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2022-07-23T03:56:23.913000+00:00","last_edit_date":"2016-12-02T05:52:44.150000+00:00","...
[ 0.0070343017578125, -0.036468505859375, -0.00905609130859375, -0.0207366943359375, -0.00542449951171875, -0.0094146728515625, -0.00762939453125, -0.0038433074951171875, -0.0170440673828125, 0.00911712646484375, -0.049835205078125, 0.0183563232421875, 0.0159759521484375, 0.00172805786132812...
[ 7, 10, 41, 47, 54, 70, 100, 111, 398, 450, 756, 765, 1294, 3642, 4420, 9351, 19095, 22687, 23180, 29458, 44457, 48962, 63399, 80866, 150370 ]
[ 0.027099609375, 0.005615234375, 0.1513671875, 0.043212890625, 0.010009765625, 0.0087890625, 0.103515625, 0.06005859375, 0.0009765625, 0.0242919921875, 0.1083984375, 0.0703125, 0.1826171875, 0.091796875, 0.1865234375, 0.1572265625, 0.1298828125, 0.1171875, 0.1875, 0.1708984375, ...
1325222c-5242-5212-a3e8-2620c35797ee
3,589
0
Title: Backup SQL Schema Only? I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this? EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry
75
75
[ "sql" ]
[ "sql", "sql-server", "oracle-database", "sql-server-2005", "backup" ]
{"accepted_answer_id":3609,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T15:53:51.647000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2024-09-11T21:07:56.023000+00:00","last_edit_date":"2016-09-30T04:49:14.987000+00:00","...
[ -0.016815185546875, -0.02398681640625, 0.01305389404296875, -0.016815185546875, 0.023040771484375, -0.008819580078125, -0.023162841796875, 0.0257568359375, 0.010406494140625, 0.032928466796875, -0.03057861328125, 0.0204620361328125, 0.0218658447265625, -0.0189361572265625, 0.000118494033...
[ 10, 47, 54, 70, 111, 157, 192, 450, 903, 1660, 2499, 3871, 3917, 4078, 4488, 4527, 4734, 9433, 10332, 11435, 22687, 26499, 28282, 31577, 34702, 45646, 48962, 59090, 60042, 61903, 80866, 87293, 115923, 126502, 187781, 201067 ]
[ 0.05078125, 0.0078125, 0.04296875, 0.052978515625, 0.0654296875, 0.1025390625, 0.1689453125, 0.0213623046875, 0.026123046875, 0.048583984375, 0.0150146484375, 0.10546875, 0.0791015625, 0.244140625, 0.010498046875, 0.040771484375, 0.109375, 0.083984375, 0.04248046875, 0.10644531...
e7a74a06-f6a9-516d-bc34-81949e337725
3,682
0
Title: Distribution of table in time I have a MySQL table with approximately 3000 rows per user. One of the columns is a datetime field, which is mutable, so the rows aren't in chronological order. I'd like to visualize the time distribution in a chart, so I need a number of individual datapoints. 20 datapoints woul...
141
143
[ "sql" ]
[ "sql", "mysql" ]
{"accepted_answer_id":155901,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T16:58:34.153000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-02-22T17:06:17.497000+00:00","last_edit_date":"2012-05-21T17:37:00.937000+00:00"...
[ 0.0136871337890625, -0.007343292236328125, -0.0002815723419189453, -0.0126953125, 0.0272674560546875, 0.01849365234375, -0.01837158203125, 0.0006837844848632812, 0.027496337890625, -0.00824737548828125, 0.0026187896728515625, 0.03814697265625, 0.002002716064453125, -0.0291290283203125, -...
[ 18, 23, 41, 54, 70, 75, 87, 106, 111, 117, 136, 316, 387, 532, 705, 765, 842, 927, 1286, 1363, 1733, 1779, 1884, 2053, 2806, 3252, 3365, 3509, 3871, 5622, 5773, 5809, 6032, 6561, 6713, 8110, 10484, 11651, 12989, 14012, 15555, 17287, ...
[ 0.026611328125, 0.06201171875, 0.1328125, 0.005859375, 0.00390625, 0.052734375, 0.0322265625, 0.06201171875, 0.05419921875, 0.0419921875, 0.0234375, 0.08203125, 0.1259765625, 0.130859375, 0.013427734375, 0.0159912109375, 0.091796875, 0.047607421875, 0.0206298828125, 0.0859375, ...
f151cdbc-f5ae-52db-92f4-12ba0d4a08ac
3,823
0
Title: Suggestions for implementing audit tables in SQL Server? One simple method I've used in the past is basically just creating a second table whose structure mirrors the one I want to audit, and then create an update/delete trigger on the main table. Before a record is updated/deleted, the current state is saved t...
145
157
[ "sql" ]
[ "sql", "sql-server", "database", "audit" ]
{"accepted_answer_id":3848,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T18:39:33.560000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-05-07T03:13:05.320000+00:00","last_edit_date":"2016-05-07T03:13:05.320000+00:00","...
[ 0.0007905960083007812, -0.01560211181640625, 0.0247039794921875, -0.0264739990234375, 0.0172576904296875, -0.0111083984375, -0.0163116455078125, 0.01200103759765625, 0.00446319580078125, 0.0190277099609375, -0.043731689453125, 0.01383209228515625, 0.0108184814453125, -0.0031909942626953125...
[ 7, 47, 57, 67, 214, 959, 2053, 3444, 4126, 5201, 5526, 5792, 5941, 8520, 8781, 11015, 11341, 11522, 11814, 13416, 17164, 17932, 22687, 23180, 28282, 28350, 29479, 43373, 43581, 44200, 45646, 55300, 60266, 65572, 72546, 80234, 80866, 103210, ...
[ 0.011474609375, 0.0185546875, 0.05322265625, 0.06494140625, 0.099609375, 0.0201416015625, 0.1123046875, 0.0146484375, 0.0712890625, 0.022705078125, 0.054931640625, 0.006103515625, 0.00732421875, 0.1064453125, 0.0869140625, 0.053466796875, 0.109375, 0.095703125, 0.056884765625, ...
d7dd9f00-dbbf-522e-9d68-6feb6fef0c18
3,839
0
Title: How do I Concatenate entire result sets in MySQL? I'm trying out the following query: SELECT A,B,C FROM table WHERE field LIKE 'query%' UNION SELECT A,B,C FROM table WHERE field LIKE '%query' UNION SELECT A,B,C FROM table WHERE field LIKE '%query%' GROUP BY B ORDER BY B ASC LIMIT 5 That's three queries stuc...
183
220
[ "sql" ]
[ "mysql", "sql", "union" ]
{"accepted_answer_id":3860,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-06T18:47:24.137000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-06-26T08:13:56.990000+00:00","last_edit_date":"2018-06-06T07:55:28.830000+00:00","...
[ 0.03662109375, -0.022979736328125, 0.01226806640625, -0.01119232177734375, 0.036865234375, 0.0160369873046875, 0.0241851806640625, 0.01119232177734375, 0.0002486705780029297, -0.0011072158813476562, 0.001346588134765625, 0.04046630859375, 0.0147247314453125, -0.007213592529296875, 0.0056...
[ 7, 23, 41, 54, 62, 67, 76, 87, 100, 165, 190, 237, 335, 441, 571, 756, 944, 1294, 1380, 1657, 3917, 3949, 4420, 5423, 6097, 6226, 6755, 7373, 7639, 8108, 8274, 8562, 10484, 11249, 14373, 16750, 16970, 17262, 17932, 18044, 20650, 23180...
[ 0.0145263671875, 0.0150146484375, 0.1337890625, 0.01123046875, 0.0400390625, 0.1064453125, 0.1318359375, 0.03271484375, 0.0087890625, 0.04150390625, 0.06298828125, 0.07958984375, 0.04248046875, 0.05224609375, 0.046875, 0.140625, 0.064453125, 0.046630859375, 0.061767578125, 0.09...
1fbdb159-ded3-5d96-9ead-95ca52f23d20
4,110
0
Title: What program can I use to generate diagrams of SQL view/table structure? I've been tasked with redesigning part of a ms-sql database structure which currently involves a lot of views, some of which contain joins to other views. Anyway, I wonder if anyone here could recommend a utility to automatically genera...
88
98
[ "sql" ]
[ "sql", "sql-server", "database", "diagram" ]
{"accepted_answer_id":4126,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":"2014-12-30T11:43:01.723000+00:00","creation_date":"2008-08-06T23:19:50.500000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2014-12-13T16:24:17+00:00","last_edit_date":"2008-08-18T16...
[ -0.01025390625, -0.03271484375, 0.0161285400390625, -0.0305938720703125, 0.0305938720703125, -0.023834228515625, 0.01013946533203125, 0.0026092529296875, 0.0032749176025390625, 0.021575927734375, -0.0209808349609375, 0.033660888671875, -0.0078277587890625, 0.0067291259765625, 0.005958557...
[ 7, 47, 87, 111, 456, 831, 939, 1528, 2831, 2965, 3075, 4358, 4527, 4865, 5809, 5915, 6044, 11814, 16912, 19537, 21176, 21455, 22819, 28271, 32195, 33284, 34198, 44402, 45646, 48962, 63399, 66211, 67330, 68163, 70541, 80866, 82424, 83687, 99...
[ 0.103515625, 0.023681640625, 0.0177001953125, 0.007080078125, 0.03173828125, 0.03271484375, 0.07568359375, 0.1796875, 0.00341796875, 0.09765625, 0.072265625, 0.06591796875, 0.09375, 0.06005859375, 0.0068359375, 0.06787109375, 0.0208740234375, 0.054931640625, 0.1943359375, 0.145...
a3d08970-af66-5166-b6ae-5a5d1d3c6243
4,393
0
Title: Drop all tables whose names begin with a certain string How can I drop all tables whose names begin with a given string? I think this can be done with some dynamic SQL and the INFORMATION_SCHEMA tables.
46
50
[ "sql" ]
[ "sql", "sql-server", "dynamic-sql" ]
{"accepted_answer_id":4401,"answer_count":18,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T04:41:37.713000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2023-03-02T23:34:08.573000+00:00","last_edit_date":"2019-08-15T16:12:55.273000+00:00",...
[ 0.007537841796875, -0.0213165283203125, -0.00870513916015625, 0.00772857666015625, 0.0257415771484375, -0.004669189453125, -0.02801513671875, 0.0189208984375, -0.01318359375, -0.004131317138671875, -0.03759765625, 0.0193023681640625, -0.010284423828125, -0.017669677734375, -0.00298118591...
[ 7, 87, 678, 756, 831, 903, 5351, 9842, 16940, 23180, 24233, 34475, 35213, 36069, 45174, 48962, 61038, 79315, 80866, 84079, 97692, 123055, 124901, 130403 ]
[ 0.1416015625, 0.017578125, 0.1279296875, 0.146484375, 0.07568359375, 0.007568359375, 0.047607421875, 0.1435546875, 0.0556640625, 0.28515625, 0.09375, 0.09521484375, 0.022216796875, 0.27734375, 0.1220703125, 0.08740234375, 0.0732421875, 0.216796875, 0.1650390625, 0.12890625, 0...
1c6e7044-f1d2-5110-bf57-fbb9835303da
4,511
0
Title: Is there any trick that allows to use Management Studio's (ver. 2008) IntelliSense feature with earlier versions of SQL Server? New version of Management Studio (i.e. the one that ships with SQL Server 2008) finally has a Transact-SQL IntelliSense feature. However, out-of-the-box it only works with SQL Server 2...
94
93
[ "sql" ]
[ "sql", "sql-server", "database", "sql-server-2008", "intellisense" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T08:04:30.923000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2014-11-25T16:51:31.793000+00:00","last_edit_date":"2014-11-25T16:51:31.793000+00:00",...
[ -0.0017642974853515625, -0.0289459228515625, 0.01067352294921875, 0.005870819091796875, 0.032989501953125, -0.0169677734375, -0.00421142578125, 0.017669677734375, -0.004627227783203125, 0.0109710693359375, -0.036529541015625, -0.0013418197631835938, 0.024078369140625, 0.036529541015625, ...
[ 70, 150, 294, 678, 814, 1556, 1810, 2021, 2347, 2356, 2499, 4390, 4488, 4527, 4734, 11062, 11389, 11728, 21161, 22687, 22968, 24018, 25924, 43240, 47013, 48962, 60213, 67688, 77681, 80866, 88308, 109923, 110527, 110680, 114864, 116313, 158897 ]
[ 0.03173828125, 0.1298828125, 0.138671875, 0.13671875, 0.06298828125, 0.00146484375, 0.05029296875, 0.2294921875, 0.00244140625, 0.025146484375, 0.0087890625, 0.047119140625, 0.01708984375, 0.0966796875, 0.0712890625, 0.1083984375, 0.1142578125, 0.1240234375, 0.1953125, 0.145507...
d57283f1-5c4f-51f9-beaa-df9692b57807
4,622
0
Title: SQL Case Expression Syntax? What is the complete and correct syntax for the SQL Case expression?
22
25
[ "sql" ]
[ "sql" ]
{"accepted_answer_id":4626,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T12:13:01.390000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2026-06-05T07:16:57.477000+00:00","last_edit_date":"2021-06-13T20:18:21.767000+00:00","...
[ 0.016998291015625, -0.0111083984375, 0.00698089599609375, -0.0230560302734375, 0.0073394775390625, -0.02032470703125, -0.016876220703125, 0.0139617919921875, -0.013427734375, 0.0096282958984375, -0.03778076171875, 0.028045654296875, 0.00594329833984375, 0.0095062255859375, 0.046600341796...
[ 1830, 6002, 19010, 25129, 26785, 28484, 43731, 48962, 80866, 86531, 125195 ]
[ 0.0400390625, 0.12890625, 0.126953125, 0.1953125, 0.109375, 0.1171875, 0.302734375, 0.0986328125, 0.25390625, 0.20703125, 0.251953125 ]
a080c5f8-28a8-5811-a2c8-302dabeae7d2
4,891
0
Title: What point should someone decide to switch Database Systems When developing whether its Web or Desktop at which point should a developer switch from SQLite, MySQL, MS SQL, etc
38
37
[ "sql" ]
[ "sql", "database" ]
{"accepted_answer_id":4908,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T16:06:33.947000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-07-22T14:38:24.287000+00:00","last_edit_date":"2012-05-03T14:06:32.257000+00:00","...
[ 0.0251007080078125, -0.0307769775390625, -0.0067596435546875, -0.029449462890625, 0.03839111328125, 0.008087158203125, -0.018951416015625, 0.024505615234375, -0.0117034912109375, 0.0067291259765625, -0.042236328125, 0.023406982421875, 0.0172576904296875, 0.005462646484375, 0.010437011718...
[ 4, 10, 47, 99, 707, 1295, 1486, 3129, 4002, 4865, 5608, 6275, 14847, 16265, 22008, 28288, 36766, 48962, 80866, 84837, 101089, 106001, 141423, 157146, 168698, 187781 ]
[ 0.012451171875, 0.0255126953125, 0.056640625, 0.0233154296875, 0.051513671875, 0.162109375, 0.279296875, 0.018798828125, 0.1533203125, 0.005859375, 0.126953125, 0.126953125, 0.0145263671875, 0.083984375, 0.07763671875, 0.1396484375, 0.00732421875, 0.04443359375, 0.306640625, 0....
4ad2e94e-e6c7-5685-b242-8a42c4aada78
4,994
0
Title: How should I organize my master ddl script I am currently creating a master ddl for our database. Historically we have used backup/restore to version our database, and not maintained any ddl scripts. The schema is quite large. My current thinking: Break script into parts (possibly in separate scripts): ...
157
164
[ "sql" ]
[ "sql", "sql-server", "schema", "ddl" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T17:18:37.170000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2017-08-25T23:24:13.573000+00:00","last_edit_date":"2008-08-18T16:17:33.867000+00:00",...
[ -0.01092529296875, -0.003082275390625, 0.0044403076171875, -0.02032470703125, 0.0268707275390625, -0.018463134765625, -0.0165863037109375, 0.02325439453125, 0.0098724365234375, -0.0013437271118164062, -0.04461669921875, 0.016937255859375, 0.01244354248046875, -0.0027751922607421875, 0.01...
[ 13, 87, 104, 158, 297, 707, 759, 765, 959, 1543, 1774, 2046, 2174, 2446, 2499, 2806, 2816, 2831, 3576, 3714, 3871, 3934, 4127, 4288, 5608, 5808, 9433, 11249, 11389, 11408, 11814, 13648, 15190, 16265, 17368, 18345, 20469, 21334, 23180, 264...
[ 0.09033203125, 0.019775390625, 0.083984375, 0.0225830078125, 0.00830078125, 0.000732421875, 0.037841796875, 0.003173828125, 0.0390625, 0.007568359375, 0.06103515625, 0.0201416015625, 0.000732421875, 0.001953125, 0.006591796875, 0.0048828125, 0.134765625, 0.0595703125, 0.172851562...
3cd1eb82-b59a-5d31-9584-fdb2df9ce9db
5,142
0
Title: Firebird's SQL's Substring function not working I created a view on a machine using the substring function from Firebird, and it worked. When I copied the database to a different machine, the view was broken. This is the way I used it: SELECT SUBSTRING(field FROM 5 FOR 15) FROM table; And this is the output...
172
166
[ "sql" ]
[ "sql", "firebird", "interbase" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-07T18:52:07.230000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2021-06-25T16:38:44.083000+00:00","last_edit_date":null,"question_id":5142,"score":9,"...
[ 0.00592041015625, -0.0172576904296875, -0.00562286376953125, -0.05450439453125, 0.032379150390625, -0.0301055908203125, 0.0001970529556274414, 0.00743865966796875, -0.01386260986328125, -0.01279449462890625, -0.0192718505859375, 0.013153076171875, -0.012969970703125, -0.00618743896484375, ...
[ 41, 47, 190, 237, 304, 335, 423, 528, 959, 1098, 1614, 1892, 3917, 5337, 6746, 6755, 8273, 8399, 8545, 10723, 11389, 11814, 12921, 13909, 14602, 15400, 16087, 17368, 20600, 20697, 21455, 22410, 23180, 25647, 26946, 27804, 27941, 28394, 3114...
[ 0.045654296875, 0.0859375, 0.111328125, 0.029052734375, 0.0537109375, 0.02392578125, 0.1474609375, 0.013916015625, 0.125, 0.15625, 0.1962890625, 0.023681640625, 0.009521484375, 0.041015625, 0.08935546875, 0.072265625, 0.2041015625, 0.1826171875, 0.0849609375, 0.06591796875, 0...
1a39e94d-f090-5798-868b-b1c40482199a
5,802
0
Title: Inheritance in database? Is there any way to use inheritance in database (Specifically in SQL Server 2005)? Suppose I have few field like CreatedOn, CreatedBy which I want to add on all of my entities. I looking for an alternative way instead of adding these fields to every table.
69
76
[ "sql" ]
[ "sql", "database", "inheritance", "sql-server-2005" ]
{"accepted_answer_id":5812,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T10:41:00.950000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2014-11-25T20:40:04.863000+00:00","last_edit_date":"2014-11-25T20:40:04.863000+00:00","...
[ -0.0046539306640625, -0.004299163818359375, 0.005931854248046875, -0.0099639892578125, 0.03936767578125, -0.00394439697265625, -0.0166015625, 0.02288818359375, 0.004596710205078125, -0.0001500844955444336, -0.026214599609375, 0.01280975341796875, 0.00765228271484375, -0.0166015625, -0.00...
[ 23, 47, 98, 217, 360, 756, 1884, 2071, 2449, 2499, 2685, 3334, 3444, 3917, 4078, 4527, 7154, 10846, 11907, 15190, 16487, 20320, 22687, 23180, 30700, 44457, 48962, 63399, 64457, 75358, 77630, 80866, 121691, 151313, 154107 ]
[ 0.16015625, 0.068359375, 0.059814453125, 0.1845703125, 0.1337890625, 0.033203125, 0.011962890625, 0.020751953125, 0.033935546875, 0.07421875, 0.048828125, 0.2158203125, 0.0693359375, 0.119140625, 0.203125, 0.19140625, 0.1767578125, 0.0859375, 0.0458984375, 0.154296875, 0.0380...
ec25d628-5de7-50d7-ab5e-7a7f1763cb8b
6,340
0
Title: Multiple foreign keys? I've got a table that is supposed to track days and costs for shipping product from one vendor to another. We (brilliantly :p) stored both the shipping vendors (FedEx, UPS) with the product handling vendors (Think... Dunder Mifflin) in a "VENDOR" table. So, I have three columns in my SHIP...
464
570
[ "sql" ]
[ "sql", "mysql", "foreign-keys" ]
{"accepted_answer_id":6349,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T20:07:43.390000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-01-11T08:24:24.973000+00:00","last_edit_date":"2013-11-03T05:06:52.803000+00:00","...
[ 0.01461029052734375, -0.01593017578125, 0.003143310546875, 0.00514984130859375, 0.0035915374755859375, 0.0116119384765625, 0.01071929931640625, 0.004669189453125, -0.0215606689453125, 0.0028743743896484375, -0.0023651123046875, 0.042144775390625, 0.0100555419921875, 0.006465911865234375, ...
[ 5, 7, 18, 23, 27, 32, 39, 56, 83, 95, 96, 136, 157, 190, 237, 254, 297, 316, 384, 397, 678, 683, 756, 757, 759, 786, 1208, 1221, 1295, 1353, 1514, 2397, 3020, 3252, 3365, 3564, 3611, 3958, 4034, 4171, 4343, 4633, 4902, 6544, 707...
[ 0.03173828125, 0.099609375, 0.052490234375, 0.016357421875, 0.0107421875, 0.0390625, 0.041015625, 0.01123046875, 0.00390625, 0.041015625, 0.01708984375, 0.0205078125, 0.2333984375, 0.0888671875, 0.017578125, 0.010009765625, 0.018310546875, 0.1083984375, 0.1484375, 0.111328125, ...
826852f1-2a4c-5b15-8e5a-d576cfedcb8b
6,369
0
Title: How to pass a comma separated list to a stored procedure? So I have a Sybase stored proc that takes 1 parameter that's a comma separated list of strings and runs a query with in in an IN() clause: CREATE PROCEDURE getSomething @keyList varchar(4096) AS SELECT * FROM mytbl WHERE name IN (@keyList) How do I c...
215
258
[ "sql" ]
[ "sql", "sap-ase" ]
{"accepted_answer_id":10838,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-08T20:48:29.377000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-05-29T16:05:33.550000+00:00","last_edit_date":"2013-03-14T04:51:41.350000+00:00"...
[ -0.0168304443359375, -0.04473876953125, 0.024871826171875, -0.03692626953125, 0.038177490234375, -0.0168304443359375, 0.0113067626953125, -0.0079498291015625, 0.016204833984375, 0.0200958251953125, -0.033905029296875, 0.0240020751953125, -0.01369476318359375, -0.01061248779296875, 0.0207...
[ 23, 41, 47, 53, 71, 106, 132, 238, 282, 397, 452, 678, 759, 1119, 1286, 1294, 1374, 2046, 2839, 3240, 3501, 4343, 4488, 4734, 4843, 5303, 5881, 6002, 6626, 6755, 7413, 8241, 8912, 9030, 9254, 9351, 10298, 10402, 10514, 10854, 11249, 1...
[ 0.0172119140625, 0.0849609375, 0.12109375, 0.087890625, 0.1123046875, 0.1240234375, 0.0771484375, 0.1142578125, 0.10400390625, 0.08203125, 0.1787109375, 0.050048828125, 0.0439453125, 0.052978515625, 0.134765625, 0.0634765625, 0.03662109375, 0.1279296875, 0.0247802734375, 0.1728...
21aaaf45-2e29-51b5-a972-0d4fb3a9f549
6,899
0
Title: How to create a SQL Server function to "join" multiple rows from a subquery into a single delimited field? To illustrate, assume that I have two tables as follows: VehicleID Name 1 Chuck 2 Larry LocationID VehicleID City 1 1 New York 2 1 Seattle 3 1 ...
493
558
[ "sql" ]
[ "sql", "sql-server", "string-concatenation" ]
{"accepted_answer_id":6980,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":"2017-04-07T01:36:37.437000+00:00","creation_date":"2008-08-09T20:11:18.467000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2021-11-17T16:27:03.643000+00:00","last_edit_date":"2018-...
[ 0.0147705078125, -0.0243377685546875, 0.01029205322265625, -0.0200958251953125, 0.0283355712890625, -0.018402099609375, 0.00787353515625, 0.017791748046875, -0.0248260498046875, 0.0130157470703125, -0.0209503173828125, -0.0021343231201171875, -0.02301025390625, 0.0160980224609375, 0.0232...
[ 4, 8, 18, 41, 44, 47, 73, 106, 116, 132, 138, 190, 384, 474, 513, 563, 757, 831, 903, 944, 1294, 1295, 1374, 1514, 1614, 1884, 2356, 2806, 3444, 3559, 3731, 3934, 4295, 5609, 5753, 6406, 6483, 6626, 6755, 6782, 7146, 7722, 8852, 9...
[ 0.00439453125, 0.1162109375, 0.026611328125, 0.10546875, 0.0150146484375, 0.0634765625, 0.158203125, 0.0213623046875, 0.0908203125, 0.0068359375, 0.06494140625, 0.083984375, 0.0400390625, 0.031494140625, 0.2294921875, 0.0107421875, 0.0167236328125, 0.031005859375, 0.00048828125, ...
6c99e8d8-4d8f-53eb-a9ff-5b9e53dee85a
7,211
0
Title: What's the best way of converting a mysql database to a sqlite one? I currently have a relatively small (4 or 5 tables, 5000 rows) MySQL database that I would like to convert to an sqlite database. As I'd potentially have to do this more than once, I'd be grateful if anyone could recommend any useful tools, or ...
99
111
[ "sql" ]
[ "sql", "mysql", "database", "sqlite" ]
{"accepted_answer_id":null,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-10T15:03:20.383000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2012-12-14T02:00:38.803000+00:00","last_edit_date":"2009-03-01T00:08:52.520000+00:00",...
[ -0.0026836395263671875, -0.0190887451171875, 0.01055908203125, -0.0162506103515625, 0.01079559326171875, 0.00652313232421875, -0.006256103515625, -0.00806427001953125, 0.00234222412109375, 0.00548553466796875, -0.01274871826171875, 0.0193328857421875, 0.00042438507080078125, -0.00919342041...
[ 7, 10, 32, 47, 67, 70, 87, 91, 111, 142, 186, 190, 214, 759, 765, 1286, 1632, 1884, 2965, 3917, 4865, 15555, 17203, 18022, 19336, 19692, 19713, 23180, 24145, 28484, 35672, 35845, 38516, 48962, 52721, 55300, 63399, 67330, 72546, 72977, 7...
[ 0.04541015625, 0.0216064453125, 0.000244140625, 0.1064453125, 0.259765625, 0.0164794921875, 0.001220703125, 0.10205078125, 0.0306396484375, 0.031982421875, 0.002685546875, 0.040771484375, 0.080078125, 0.123046875, 0.019287109375, 0.0537109375, 0.072265625, 0.062255859375, 0.12988...
9d4ba30f-4359-502d-b731-79baa0197432
7,517
0
Title: Dropping a group of tables in SQL Server Is there a simple way to drop a group of interrelated tables in SQL Server? Ideally I'd like to avoid having to worry about what order they're being dropped in since I know the entire group will be gone by the end of the process.
64
69
[ "sql" ]
[ "sql", "sql-server", "database" ]
{"accepted_answer_id":25741,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T04:32:01+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2008-09-19T15:59:14.877000+00:00","last_edit_date":"2008-08-18T16:15:08.987000+00:00","questi...
[ 0.0247802734375, -0.01593017578125, 0.014190673828125, 0.01251220703125, 0.0313720703125, -0.00655364990234375, 0.004131317138671875, 0.0196380615234375, -0.01251220703125, 0.007965087890625, -0.038543701171875, 0.01424407958984375, -0.00957489013671875, 0.00574493408203125, -0.001601219...
[ 7, 10, 23, 47, 111, 1884, 1940, 2685, 3564, 3714, 3917, 8781, 9433, 12989, 20051, 21115, 22687, 23180, 26783, 36069, 41143, 46193, 48962, 64194, 71864, 74955, 80866, 90908, 174822 ]
[ 0.123046875, 0.041259765625, 0.057373046875, 0.0947265625, 0.08642578125, 0.0478515625, 0.083984375, 0.0390625, 0.05810546875, 0.01513671875, 0.08642578125, 0.1455078125, 0.02197265625, 0.0830078125, 0.064453125, 0.2060546875, 0.162109375, 0.2451171875, 0.1220703125, 0.26171875...
5fef0f22-2ca8-5eb7-afbb-55e38d738f78
8,145
0
Title: How do I find the high water mark (for sessions) on Oracle 9i How can I find the high water mark (the historical maximum number of concurrent users) in an oracle database (9i).
47
45
[ "sql" ]
[ "sql", "oracle-database", "session", "oracle9i" ]
{"accepted_answer_id":8161,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T19:53:16.443000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-06-06T07:53:55.537000+00:00","last_edit_date":"2018-06-06T07:53:55.537000+00:00","...
[ 0.004604339599609375, -0.0226593017578125, -0.0216064453125, -0.0210113525390625, -0.00879669189453125, 0.0164031982421875, -0.0181732177734375, -0.00311279296875, 0.01806640625, -0.018646240234375, -0.054290771484375, 0.0130462646484375, 0.01451873779296875, -0.0112152099609375, 0.02537...
[ 14, 16, 23, 70, 87, 98, 483, 831, 2347, 2472, 3620, 7401, 7413, 11030, 11192, 11249, 14012, 16188, 23817, 38132, 48962, 63399, 72095, 104227, 133244, 146785, 186768 ]
[ 0.1376953125, 0.014404296875, 0.04296875, 0.0751953125, 0.0220947265625, 0.0439453125, 0.1845703125, 0.043701171875, 0.001220703125, 0.0537109375, 0.1513671875, 0.228515625, 0.1337890625, 0.1669921875, 0.197265625, 0.03759765625, 0.1435546875, 0.2158203125, 0.1787109375, 0.1757...
99577beb-c128-54d6-950a-6698655265db
8,213
0
Title: Generate insert SQL statements from a CSV file I need to import a csv file into Firebird and I've spent a couple of hours trying out some tools and none fit my needs. The main problem is that all the tools I've been trying like EMS Data Import and Firebird Data Wizard expect that my CSV file contains all the ...
205
238
[ "sql" ]
[ "sql", "csv", "insert", "firebird" ]
{"accepted_answer_id":8220,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-11T20:59:11.973000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2022-12-27T19:19:53.310000+00:00","last_edit_date":"2019-04-20T17:57:00.033000+00:00",...
[ 0.00893402099609375, -0.0241851806640625, 0.01129913330078125, -0.033050537109375, -0.0020503997802734375, 0.006439208984375, 0.00008541345596313477, -0.0126953125, -0.002643585205078125, 0.018707275390625, -0.01209259033203125, 0.01464080810546875, 0.00157928466796875, -0.0143966674804687...
[ 7, 67, 310, 313, 334, 351, 756, 903, 1295, 1614, 1884, 2646, 2806, 2967, 3871, 3934, 4343, 4677, 5201, 6713, 7146, 9127, 9351, 11177, 11338, 11435, 11809, 13526, 15700, 20763, 21481, 21771, 21974, 23180, 24927, 26349, 27117, 31143, 31577, ...
[ 0.02978515625, 0.041748046875, 0.0556640625, 0.07275390625, 0.2119140625, 0.001220703125, 0.06640625, 0.012451171875, 0.107421875, 0.1044921875, 0.03271484375, 0.00341796875, 0.005126953125, 0.1240234375, 0.0478515625, 0.031494140625, 0.0517578125, 0.09375, 0.0361328125, 0.0229...
5b6ad3bd-c7db-5394-b63f-7dc13018b0d4
8,987
0
Title: Calling Table-Valued SQL Functions From .NET Scalar-valued functions can be called from .NET as follows: SqlCommand cmd = new SqlCommand("testFunction", sqlConn); //testFunction is scalar cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("retVal", SqlDbType.Int); cmd.Parameters["retVal"].Dir...
210
333
[ ".net", "c#", "sql" ]
[ "c#", ".net", "sql" ]
{"accepted_answer_id":8993,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-12T15:50:49.460000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","sql"],"last_activity_date":"2014-07-26T10:37:16.860000+00:00","last_edit_date":"2014-01-13T23:52:57.440...
[ -0.005733489990234375, -0.016326904296875, 0.0170440673828125, -0.01068115234375, 0.0176544189453125, -0.0210113525390625, -0.0008592605590820312, 0.0063323974609375, -0.00047278404235839844, 0.030609130859375, -0.016571044921875, -0.0028972625732421875, -0.0135650634765625, 0.006092071533...
[ 7, 9, 34, 41, 42, 71, 93, 159, 214, 237, 297, 320, 408, 831, 856, 987, 1295, 1827, 1884, 2264, 2631, 3034, 3525, 3931, 4028, 4288, 4343, 5117, 5713, 6276, 6954, 7136, 9030, 10763, 10770, 11935, 12018, 17777, 18151, 20949, 21373, 22409...
[ 0.04931640625, 0.007080078125, 0.11328125, 0.048583984375, 0.09912109375, 0.10693359375, 0.0172119140625, 0.005615234375, 0.057861328125, 0.06201171875, 0.0888671875, 0.1875, 0.1552734375, 0.076171875, 0.08251953125, 0.027587890625, 0.103515625, 0.15234375, 0.041259765625, 0.07...
68db084c-dde3-5ad9-bba9-919efea39e48
9,614
0
Title: Bidirectional outer join Suppose we have a table A: itemid mark 1 5 2 3 and table B: itemid mark 1 3 3 5 I want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result: itemid A.mark B.mark 1 5 3 2 3 NULL 3 NULL 5 Is there a way to do it ...
115
98
[ "sql" ]
[ "sql", "mysql" ]
{"accepted_answer_id":9635,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T09:41:43.917000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-01-22T10:18:48.543000+00:00","last_edit_date":null,"question_id":9614,"score":8,"s...
[ 0.0225372314453125, 0.006206512451171875, -0.0012960433959960938, -0.0309295654296875, 0.011993408203125, 0.01493072509765625, 0.0076446533203125, -0.0058441162109375, -0.0262603759765625, 0.0019931793212890625, -0.00003045797348022461, 0.0330810546875, 0.00905609130859375, -0.001723289489...
[ 23, 41, 47, 54, 56, 62, 98, 106, 116, 136, 138, 190, 335, 442, 532, 571, 1294, 1369, 1486, 1632, 1639, 1810, 1843, 3444, 3917, 7108, 10015, 15044, 16188, 16750, 18057, 22000, 23180, 23708, 25737, 33284, 35735, 48322, 48962, 80581, 11011...
[ 0.018310546875, 0.115234375, 0.0771484375, 0.04931640625, 0.123046875, 0.07177734375, 0.09814453125, 0.0286865234375, 0.064453125, 0.0546875, 0.171875, 0.1689453125, 0.0927734375, 0.0235595703125, 0.189453125, 0.162109375, 0.126953125, 0.011962890625, 0.111328125, 0.11328125, ...
def68fa1-637e-5d14-b05b-716eaa2186eb
9,687
0
Title: Need Pattern for dynamic search of multiple sql tables I'm looking for a pattern for performing a dynamic search on multiple tables. I have no control over the legacy (and poorly designed) database table structure. Consider a scenario similar to a resume search where a user may want to perform a search agai...
248
278
[ "sql" ]
[ "sql", "database-design", "design-patterns", "dynamic-sql", "table-structure" ]
{"accepted_answer_id":null,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T12:06:07.383000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-02-19T00:10:06.270000+00:00","last_edit_date":"2013-02-19T00:10:06.270000+00:00",...
[ 0.007537841796875, 0.0002651214599609375, -0.006793975830078125, -0.0113983154296875, 0.0262298583984375, -0.00991058349609375, -0.0059356689453125, 0.0261077880859375, -0.002567291259765625, -0.00997161865234375, -0.048675537109375, 0.0242156982421875, 0.01300048828125, 0.0081939697265625...
[ 7, 41, 91, 98, 100, 110, 294, 434, 450, 645, 738, 765, 814, 831, 903, 959, 1286, 1294, 1543, 2053, 2174, 2408, 2499, 2940, 2967, 3257, 3444, 3687, 4420, 4432, 4734, 5036, 5303, 5423, 6183, 6226, 6544, 6872, 7730, 7844, 8060, 8244, 8...
[ 0.01123046875, 0.0869140625, 0.02978515625, 0.08984375, 0.04052734375, 0.04345703125, 0.1162109375, 0.03564453125, 0.009033203125, 0.00830078125, 0.040283203125, 0.013671875, 0.059326171875, 0.035888671875, 0.012939453125, 0.03076171875, 0.0242919921875, 0.05712890625, 0.01977539...
d29f88bc-db1c-5f64-a60c-298fe0621f41
9,974
0
Title: Query times out from web app but runs fine from management studio This is a question I asked on another forum which received some decent answers, but I wanted to see if anyone here has more insight. The problem is that you have one of your pages in a web application timing out when it gets to a stored procedu...
160
161
[ "sql" ]
[ "sql", "sql-server", "sql-server-2005" ]
{"accepted_answer_id":9996,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T15:49:41.317000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2014-11-25T20:46:06.607000+00:00","last_edit_date":"2014-11-25T20:46:06.607000+00:00","...
[ -0.0225982666015625, -0.036895751953125, -0.0007872581481933594, -0.0228271484375, 0.037139892578125, -0.0274505615234375, -0.005176544189453125, 0.0113525390625, 0.00958251953125, 0.01158905029296875, -0.023773193359375, 0.00946044921875, -0.00543975830078125, 0.0090484619140625, 0.0107...
[ 10, 23, 41, 53, 56, 214, 1294, 1295, 1467, 1660, 1733, 1810, 2685, 2967, 3934, 4027, 4343, 4527, 4738, 5426, 5527, 5885, 7225, 7413, 9655, 9932, 11675, 11782, 12275, 12638, 12684, 13105, 13439, 15400, 16655, 17368, 17777, 17932, 20028, 22...
[ 0.000244140625, 0.007080078125, 0.1650390625, 0.0986328125, 0.1044921875, 0.1083984375, 0.154296875, 0.08642578125, 0.123046875, 0.03466796875, 0.1181640625, 0.1884765625, 0.0284423828125, 0.1591796875, 0.06494140625, 0.130859375, 0.1044921875, 0.0380859375, 0.024169921875, 0.0...
e49b8f73-b546-5d48-9099-caf8efc96b7f
10,190
0
Title: How to return a page of results from SQL? Many applications have grids that display data from a database table one page at a time. Many of them also let the user pick the number of records per page, sort by any column, and navigate back and forth through the results. What's a good algorithm to implement this ...
110
117
[ ".net", "sql" ]
[ ".net", "sql", "linq", "pagination" ]
{"accepted_answer_id":10194,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-13T18:38:02.740000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","sql"],"last_activity_date":"2020-06-25T07:33:01.190000+00:00","last_edit_date":null,"question_id":10190,"sc...
[ -0.0103607177734375, -0.005298614501953125, 0.00959014892578125, -0.0280609130859375, 0.002071380615234375, -0.01154327392578125, -0.0202484130859375, 0.0143280029296875, 0.0171661376953125, 0.00269317626953125, -0.01551055908203125, 0.01515960693359375, 0.00923919677734375, 0.026046752929...
[ 47, 111, 117, 316, 1295, 1632, 1660, 1733, 2053, 2633, 2737, 3365, 3444, 4127, 4420, 6468, 8305, 9191, 10314, 11249, 12096, 14012, 15490, 18929, 19095, 23180, 23282, 29479, 29806, 30646, 38937, 39580, 44116, 46312, 46610, 48962, 50339, 52455,...
[ 0.023681640625, 0.07421875, 0.033935546875, 0.009033203125, 0.109375, 0.08203125, 0.05078125, 0.1318359375, 0.1005859375, 0.013671875, 0.1650390625, 0.007080078125, 0.12109375, 0.0771484375, 0.00732421875, 0.115234375, 0.0286865234375, 0.2255859375, 0.146484375, 0.1142578125, ...
540deacc-dd04-55bc-a751-4e857c96a110
10,727
0
Title: What is a "reasonable" length of time to keep a SQL cursor open? In your applications, what's a "long time" to keep a transaction open before committing or rolling back? Minutes? Seconds? Hours? and on which database?
54
63
[ "sql" ]
[ "sql", "cursors" ]
{"accepted_answer_id":10818,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T06:07:53.347000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2009-02-13T00:54:40.213000+00:00","last_edit_date":"2008-09-09T21:13:53.247000+00:00",...
[ 0.004840850830078125, -0.023162841796875, -0.0038299560546875, -0.0024356842041015625, 0.0013360977172851562, -0.01312255859375, -0.009918212890625, 0.0184173583984375, 0.0260162353515625, 0.005939483642578125, -0.048004150390625, 0.02008056640625, -0.00632476806640625, -0.0306396484375, ...
[ 7, 10, 42, 47, 58, 111, 214, 266, 375, 707, 1283, 1681, 1733, 2367, 2886, 4420, 4865, 8108, 9803, 10617, 13695, 13810, 19514, 21972, 48962, 63399, 77648, 80866, 86685, 124161, 133250, 136043, 140909 ]
[ 0.008544921875, 0.0361328125, 0.1484375, 0.01123046875, 0.0439453125, 0.0419921875, 0.037841796875, 0.138671875, 0.0654296875, 0.0201416015625, 0.044921875, 0.1142578125, 0.20703125, 0.0302734375, 0.12109375, 0.1748046875, 0.00634765625, 0.11328125, 0.232421875, 0.1669921875, ...
85e73d27-dbe6-5fc2-a9ba-b327d4edea81
10,819
0
Title: SQL, Auxiliary table of numbers For certain types of sql queries, an auxiliary table of numbers can be very useful. It may be created as a table with as many rows as you need for a particular task or as a user defined function that returns the number of rows required in each query. What is the optimal way to ...
75
86
[ "sql" ]
[ "sql", "sql-server" ]
{"accepted_answer_id":2663232,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T09:01:37.663000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2022-05-25T21:01:17.117000+00:00","last_edit_date":"2013-06-25T20:04:16.677000+00:00...
[ 0.0182647705078125, -0.0015001296997070312, 0.0087127685546875, 0.00017726421356201172, 0.034149169921875, -0.006328582763671875, -0.020416259765625, -0.0090179443359375, -0.0210113525390625, 0.0235137939453125, -0.0386962890625, 0.0155181884765625, -0.01468658447265625, 0.005462646484375,...
[ 41, 53, 62, 91, 100, 111, 142, 186, 237, 678, 831, 1294, 1543, 1650, 2104, 3871, 3917, 4552, 5941, 6044, 6077, 6635, 10484, 12638, 14012, 15555, 17311, 23180, 24087, 24233, 28282, 30646, 32354, 38937, 48962, 52895, 56065, 61924, 66211, 75...
[ 0.0947265625, 0.1455078125, 0.055419921875, 0.01416015625, 0.007080078125, 0.1611328125, 0.03857421875, 0.05615234375, 0.047119140625, 0.0150146484375, 0.0771484375, 0.06103515625, 0.044189453125, 0.004150390625, 0.171875, 0.107421875, 0.060302734375, 0.0869140625, 0.0498046875, ...
f9c96abf-a69a-53d1-b70a-fc4e3d290d27
11,028
0
Title: What are the advantages of explicit Join Transitive Closure in SQL? When I'm joining three or more tables together by a common column, I'd write my query like this: SELECT * FROM a, b, c WHERE a.id = b.id AND b.id = c.id a colleague recently asked my why I didn't do explicit Join Transitive Closure in...
172
196
[ "sql" ]
[ "sql" ]
{"accepted_answer_id":11044,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T13:44:43.357000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-11-03T09:15:43.210000+00:00","last_edit_date":"2017-05-23T10:32:50.733000+00:00",...
[ -0.00621795654296875, -0.016387939453125, 0.0126190185546875, 0.005023956298828125, 0.0066375732421875, -0.00992584228515625, 0.00902557373046875, 0.01291656494140625, -0.0123748779296875, 0.002960205078125, -0.0212860107421875, 0.037078857421875, -0.021636962890625, -0.002227783203125, ...
[ 5, 7, 10, 18, 23, 41, 54, 70, 71, 111, 214, 316, 442, 458, 501, 532, 661, 759, 876, 903, 1257, 1286, 1294, 1374, 1884, 2408, 2499, 3257, 3365, 4865, 5115, 5402, 5844, 6002, 6183, 6755, 10484, 15400, 15572, 15935, 17262, 18151, 20995...
[ 0.01416015625, 0.1083984375, 0.0634765625, 0.11328125, 0.007080078125, 0.119140625, 0.034423828125, 0.000244140625, 0.033203125, 0.016845703125, 0.0322265625, 0.07861328125, 0.00439453125, 0.1123046875, 0.08642578125, 0.166015625, 0.064453125, 0.004638671875, 0.08349609375, 0.0...
a73fbd7d-d764-5774-963d-a3e310afa74b
11,043
0
Title: SQL Table Aliases - Good or Bad? What are the pros and cons of using table aliases in SQL? I personally try to avoid them, as I think they make the code less readable (especially when reading through large where/and statements), but I'd be interested in hearing any counter-points to this. When is it generally a...
86
98
[ "sql" ]
[ "sql", "alias" ]
{"accepted_answer_id":11053,"answer_count":17,"chunk_count":1,"chunk_index":0,"closed_date":"2013-07-23T16:00:51.340000+00:00","creation_date":"2008-08-14T13:53:33.467000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2016-11-01T19:19:57.343000+00:00","last_edit_date":"2016...
[ 0.01434326171875, -0.0216064453125, 0.0166015625, -0.0038604736328125, 0.04296875, -0.0032958984375, -0.0137939453125, 0.0220947265625, -0.01251220703125, 0.00738525390625, -0.046630859375, 0.0111083984375, -0.00064849853515625, -0.01318359375, 0.02294921875, 0.0294189453125, 0.00527...
[ 7, 23, 90, 136, 158, 162, 707, 2132, 2822, 2856, 2886, 3249, 4127, 4527, 5351, 6528, 7440, 9384, 9790, 12301, 12601, 12745, 14847, 16454, 17368, 18151, 18621, 23180, 38280, 38496, 40715, 48962, 55109, 60892, 63805, 71864, 80866, 105416, 112...
[ 0.0712890625, 0.008056640625, 0.181640625, 0.0927734375, 0.1669921875, 0.197265625, 0.0888671875, 0.19140625, 0.043212890625, 0.0303955078125, 0.1005859375, 0.0201416015625, 0.09765625, 0.08740234375, 0.011962890625, 0.0791015625, 0.03466796875, 0.1279296875, 0.056396484375, 0....
6256df53-26d8-55c8-912d-32a200094a26
11,141
0
Title: ASP.NET Caching Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my own "Cache", because I didn't know any better, it looked a bit like this: public class DataManager { private static DataManager s_instance; public static DataManager GetInstance() { ...
247
276
[ "sql" ]
[ "asp.net", "sql", "caching" ]
{"accepted_answer_id":11146,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-14T14:46:30.317000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2010-09-21T07:28:46.357000+00:00","last_edit_date":"2008-08-14T15:02:35.370000+00:00",...
[ -0.011444091796875, -0.003215789794921875, -0.00919342041015625, 0.0087738037109375, 0.0308380126953125, -0.00643157958984375, -0.03936767578125, 0.0377197265625, -0.00003981590270996094, 0.01155853271484375, -0.036773681640625, -0.012451171875, -0.00337982177734375, -0.0125732421875, 0....
[ 5, 14, 23, 39, 91, 209, 347, 377, 408, 441, 645, 903, 959, 1176, 1507, 1556, 1733, 1884, 2041, 2046, 2053, 2271, 2773, 2816, 2844, 3180, 3229, 3714, 3835, 4343, 4785, 10002, 11001, 11522, 11809, 12662, 12960, 14375, 14700, 16940, 17368,...
[ 0.001708984375, 0.03515625, 0.004638671875, 0.0264892578125, 0.07275390625, 0.0791015625, 0.052734375, 0.189453125, 0.1123046875, 0.09130859375, 0.03564453125, 0.010498046875, 0.046630859375, 0.08984375, 0.1943359375, 0.0260009765625, 0.14453125, 0.035888671875, 0.19140625, 0.0...
3d297590-e73c-59e4-93f4-4ac049aa1079
12,374
0
Title: Has anyone had any success in unit testing SQL stored procedures? We’ve found that the unit tests we’ve written for our C#/C++ code have really paid off. But we still have thousands of lines of business logic in stored procedures, which only really get tested in anger when our product is rolled out to a large n...
336
370
[ "sql" ]
[ "sql", "unit-testing", "linq-to-sql" ]
{"accepted_answer_id":25204,"answer_count":16,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T15:29:14.837000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2015-07-22T10:15:02.233000+00:00","last_edit_date":"2008-08-23T19:43:46.007000+00:00"...
[ 0.0027751922607421875, -0.0169830322265625, 0.014068603515625, -0.0219573974609375, 0.020782470703125, -0.011810302734375, -0.0002503395080566406, 0.0003581047058105469, 0.03204345703125, -0.00902557373046875, -0.031829833984375, 0.007537841796875, -0.01229095458984375, 0.042022705078125, ...
[ 47, 71, 96, 348, 452, 678, 765, 864, 1902, 2053, 2397, 2499, 2806, 3034, 3564, 4343, 4488, 4552, 4904, 4989, 5773, 5962, 6183, 7464, 7941, 8063, 8781, 10402, 12047, 12996, 14037, 15549, 16648, 17669, 17721, 18151, 19336, 20625, 22799, 231...
[ 0.087890625, 0.0286865234375, 0.06201171875, 0.1396484375, 0.012939453125, 0.033447265625, 0.0296630859375, 0.06689453125, 0.068359375, 0.080078125, 0.0458984375, 0.05859375, 0.001708984375, 0.2099609375, 0.001953125, 0.150390625, 0.033447265625, 0.03515625, 0.125, 0.0854492187...
543691fc-7053-5315-860c-0c667a8095bd
12,613
0
Title: Specify a Port Number in Emacs sql-mysql I've been using Emacs's sql interactive mode to talk to the MySQL db server and gotten to enjoy it. A developer has set up another db on a new non-default port number but I don't know how to access it using sql-mysql. How do I specify a port number when I'm trying to c...
113
128
[ "sql" ]
[ "sql", "mysql", "emacs" ]
{"accepted_answer_id":12538719,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T19:12:24.217000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2023-08-22T19:23:32.730000+00:00","last_edit_date":"2008-08-15T22:23:31.007000+00:0...
[ -0.0124969482421875, -0.0232086181640625, -0.00624847412109375, -0.01226043701171875, -0.00897216796875, 0.0002541542053222656, -0.022247314453125, 0.0098114013671875, -0.00054931640625, 0.03253173828125, -0.0241546630859375, 0.0187835693359375, 0.006038665771484375, -0.005889892578125, ...
[ 9, 10, 18, 23, 47, 54, 98, 100, 351, 2301, 3525, 3642, 3714, 4439, 4527, 5423, 10723, 11249, 11469, 11522, 13736, 13791, 14012, 15700, 17203, 17368, 18929, 22120, 24990, 25225, 31577, 37067, 40041, 40140, 40383, 48962, 63399, 74277, 85269, ...
[ 0.030517578125, 0.02880859375, 0.044677734375, 0.02099609375, 0.009765625, 0.006103515625, 0.0068359375, 0.002685546875, 0.0654296875, 0.03271484375, 0.0400390625, 0.01220703125, 0.043701171875, 0.1826171875, 0.04248046875, 0.0291748046875, 0.0250244140625, 0.03564453125, 0.21191...
209e30c5-05b0-5991-bf98-f644b1b9417b
12,638
0
Title: Building an auditing system; MS Access frontend on SQL Server backend So basically I'm building an app for my company and it NEEDS to be built using MS Access and it needs to be built on SQL Server. I've drawn up most of the plans but am having a hard time figuring out a way to handle the auditing system. S...
325
358
[ "sql" ]
[ "sql", "sql-server", "ms-access", "triggers" ]
{"accepted_answer_id":null,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T19:35:13.313000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-05-17T12:04:14.770000+00:00","last_edit_date":"2017-05-23T10:32:50.377000+00:00"...
[ 0.0234832763671875, -0.0270233154296875, 0.035888671875, -0.035888671875, 0.007965087890625, 0.00200653076171875, 0.01971435546875, 0.0234832763671875, 0.0165252685546875, 0.00949859619140625, -0.0210113525390625, 0.01605224609375, 0.024200439453125, -0.002994537353515625, 0.019821166992...
[ 74, 98, 138, 214, 316, 831, 903, 959, 1528, 1733, 2750, 3365, 3611, 3642, 4027, 4331, 4420, 4734, 5426, 6032, 7941, 8520, 8561, 9351, 11814, 12684, 12912, 13034, 14380, 15490, 15549, 16265, 17368, 18151, 19048, 21771, 22687, 23180, 23996, ...
[ 0.01513671875, 0.0595703125, 0.1259765625, 0.1171875, 0.10498046875, 0.0289306640625, 0.010009765625, 0.0306396484375, 0.1044921875, 0.00634765625, 0.0517578125, 0.1220703125, 0.0986328125, 0.0068359375, 0.169921875, 0.146484375, 0.0927734375, 0.0177001953125, 0.1708984375, 0.0...
09fe8f9d-0d7e-5c97-a257-f245e9d2db89
12,855
0
Title: Database Case Insensitive Index? I have a query where I am searching against a string: SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO'; Now, this works fine, but it doesn't scale well, and I need to optimize it. I have found an option along the lines of creating a generated view, or something li...
236
263
[ "sql" ]
[ "sql", "database", "oracle-database", "indexing", "db2" ]
{"accepted_answer_id":null,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-15T22:47:57.370000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2017-08-25T22:14:45.600000+00:00","last_edit_date":"2016-09-30T04:42:45.123000+00:00",...
[ -0.0037174224853515625, -0.033843994140625, -0.0264739990234375, -0.0263519287109375, 0.0258636474609375, -0.015411376953125, -0.0167999267578125, -0.009246826171875, 0.01299285888671875, -0.0106964111328125, -0.038665771484375, -0.00237274169921875, 0.0080413818359375, 0.00335502624511718...
[ 10, 13, 18, 23, 32, 34, 41, 42, 53, 64, 97, 98, 100, 142, 304, 316, 360, 425, 509, 532, 627, 681, 1294, 3365, 3444, 3525, 3871, 3917, 4527, 4966, 5299, 5885, 6183, 6755, 7285, 8079, 8781, 9127, 9248, 9803, 9804, 11627, 15549, 1557...
[ 0.006591796875, 0.107421875, 0.03759765625, 0.055908203125, 0.034912109375, 0.0498046875, 0.09912109375, 0.0194091796875, 0.080078125, 0.0771484375, 0.0849609375, 0.0291748046875, 0.01708984375, 0.0029296875, 0.1748046875, 0.04296875, 0.1103515625, 0.09521484375, 0.0233154296875,...
4103d9d2-b4d1-5d02-87bc-42d50fba3abf
13,540
0
Title: Insert Update stored proc on SQL Server I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this: update myTable set Col1=@col1, Col2=@col2 where ID=@ID if @@rowcount = 0 insert into myTable (Col1, Col2) values (@col1, @col2) My logic...
229
238
[ "sql" ]
[ "sql", "sql-server", "stored-procedures", "upsert" ]
{"accepted_answer_id":13554,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-17T06:48:50.487000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-01-25T10:15:53.020000+00:00","last_edit_date":"2009-10-07T04:43:16.727000+00:00",...
[ 0.005069732666015625, -0.03173828125, 0.0419921875, -0.0245819091796875, 0.0242156982421875, 0.0035037994384765625, 0.0072174072265625, -0.00835418701171875, 0.032684326171875, 0.0214691162109375, -0.030548095703125, 0.0097198486328125, -0.015869140625, -0.0052490234375, -0.0030574798583...
[ 54, 71, 116, 136, 304, 360, 618, 757, 759, 1221, 1884, 2174, 2886, 3687, 3934, 4343, 5423, 7146, 7440, 8447, 10402, 10461, 11338, 11554, 11782, 15555, 17164, 17932, 22304, 22687, 24500, 28350, 28641, 30646, 30700, 32316, 32562, 33342, 33657...
[ 0.0179443359375, 0.1181640625, 0.1044921875, 0.04052734375, 0.0625, 0.0986328125, 0.0947265625, 0.146484375, 0.0634765625, 0.000244140625, 0.005859375, 0.0634765625, 0.16015625, 0.0791015625, 0.057373046875, 0.1845703125, 0.134765625, 0.045166015625, 0.125, 0.0478515625, 0.21...
0cca9eea-d238-53d5-a74e-80e4f9597f28
14,828
0
Title: Issues with DB after publishing via Database Publishing Wizard from MSFT I work on quite a few DotNetNuke sites, and occasionally (I haven't figured out the common factor yet), when I use the Database Publishing Wizard from Microsoft to create scripts for the site I've created on my Dev server, after running th...
203
222
[ "sql" ]
[ "sql", "deployment", "dotnetnuke" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T15:55:34.970000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-05-17T14:38:09.337000+00:00","last_edit_date":null,"question_id":14828,"score":3,...
[ -0.036773681640625, 0.00370025634765625, -0.0098419189453125, -0.020751953125, 0.047637939453125, -0.0150909423828125, -0.004390716552734375, 0.0245208740234375, -0.0028896331787109375, 0.0065155029296875, -0.0174560546875, -0.0107269287109375, -0.00754547119140625, 0.00713348388671875, ...
[ 7, 8, 13, 18, 67, 126, 277, 408, 645, 678, 1295, 1764, 1829, 2016, 2046, 4488, 4527, 6096, 7103, 7244, 7413, 8561, 8951, 9077, 9842, 10002, 10078, 10723, 11435, 11866, 12678, 13158, 15271, 16265, 17067, 17368, 18499, 21373, 24447, 25217, ...
[ 0.0078125, 0.0279541015625, 0.119140625, 0.009033203125, 0.0888671875, 0.0849609375, 0.109375, 0.033935546875, 0.0390625, 0.064453125, 0.03173828125, 0.076171875, 0.01953125, 0.1142578125, 0.0322265625, 0.0751953125, 0.05419921875, 0.0927734375, 0.0810546875, 0.1376953125, 0....
1bea7bfa-f528-5a41-801e-45d91ae09b4b
14,934
0
Title: Parameter Binding: What happens under the hood? .NET, Java and other high level database API's in various language often provide techniques known as prepared statements and parameter binding as opposed to sending plain text commands to the Database server. What I would like to know is what happens when you exec...
164
227
[ ".net", "c#", "sql" ]
[ "c#", "sql", ".net", "database" ]
{"accepted_answer_id":14946,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T17:11:15.083000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","sql"],"last_activity_date":"2024-04-16T12:43:13.100000+00:00","last_edit_date":"2024-04-16T12:43:13.10...
[ -0.0054168701171875, -0.0014438629150390625, 0.00861358642578125, -0.01424407958984375, 0.018310546875, -0.034942626953125, 0.003978729248046875, -0.0031261444091796875, 0.0242919921875, 0.0157928466796875, -0.0679931640625, 0.0236968994140625, -0.03277587890625, -0.0184326171875, 0.0114...
[ 6, 47, 67, 70, 71, 121, 126, 159, 275, 594, 903, 981, 1379, 1720, 1827, 1830, 1843, 1884, 2203, 2367, 2965, 3229, 3525, 3564, 3714, 4028, 4865, 6097, 6276, 7146, 7464, 7986, 10723, 10770, 11192, 12018, 14786, 16750, 17366, 17777, 22691,...
[ 0.004150390625, 0.0029296875, 0.06884765625, 0.1142578125, 0.1162109375, 0.12890625, 0.046142578125, 0.0211181640625, 0.0260009765625, 0.038818359375, 0.0029296875, 0.03515625, 0.244140625, 0.138671875, 0.1953125, 0.049560546875, 0.1611328125, 0.07177734375, 0.002685546875, 0.0...
092ff908-ad6b-54a6-bbf1-1314a5c29dce
15,142
0
Title: What are the pros and cons to keeping SQL in Stored Procs versus Code What are the advantages/disadvantages of keeping SQL in your C# source code or in Stored Procs? I've been discussing this with a friend on an open source project that we're working on (C# ASP.NET Forum). At the moment, most of the database ac...
168
178
[ "c#", "sql" ]
[ "c#", "sql", "sql-server", "stored-procedures" ]
{"accepted_answer_id":15277,"answer_count":47,"chunk_count":1,"chunk_index":0,"closed_date":"2014-02-19T03:09:30.800000+00:00","creation_date":"2008-08-18T19:54:39.467000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c#","sql"],"last_activity_date":"2014-02-18T18:11:30.803000+00:00","last_edit_date":...
[ 0.0010328292846679688, -0.033538818359375, -0.0022296905517578125, 0.0025424957275390625, 0.03021240234375, -0.01248931884765625, -0.01361846923828125, -0.00832366943359375, 0.01629638671875, 0.0144500732421875, -0.0291290283203125, 0.0214080810546875, -0.019500732421875, 0.010765075683593...
[ 7, 18, 23, 41, 47, 56, 70, 71, 100, 110, 111, 136, 158, 241, 313, 441, 621, 707, 712, 1544, 2060, 2187, 2256, 2684, 2806, 2965, 3095, 3145, 3827, 3871, 4865, 4904, 9345, 9803, 10402, 11469, 11675, 13452, 14934, 15700, 16940, 17203, ...
[ 0.1015625, 0.024658203125, 0.1494140625, 0.04931640625, 0.038818359375, 0.0830078125, 0.0159912109375, 0.15625, 0.06201171875, 0.07568359375, 0.019287109375, 0.1142578125, 0.189453125, 0.01416015625, 0.05859375, 0.00732421875, 0.002685546875, 0.02783203125, 0.1044921875, 0.125,...
3342ace1-887e-5f5b-9d82-dcdff21d64d4
15,399
0
Title: SQL With A Safety Net My firm have a talented and smart operations staff who are working very hard. I'd like to give them a SQL-execution tool that helps them avoid common, easily-detected SQL mistakes that are easy to make when they are in a hurry. Can anyone suggest such a tool? Details follow. Part of the ...
377
442
[ "sql" ]
[ "sql", "mysql" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-18T23:58:10.660000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2009-01-05T20:48:00.657000+00:00","last_edit_date":"2008-08-19T00:06:14.060000+00:00",...
[ 0.01629638671875, -0.0187530517578125, -0.005741119384765625, -0.0032520294189453125, 0.0289459228515625, -0.01171875, 0.005596160888671875, -0.0099029541015625, 0.005828857421875, 0.03375244140625, -0.049468994140625, 0.029998779296875, -0.01441192626953125, 0.007266998291015625, 0.0078...
[ 4, 5, 7, 9, 10, 14, 15, 16, 18, 20, 23, 25, 41, 47, 54, 62, 67, 70, 71, 73, 74, 98, 100, 107, 111, 136, 184, 186, 221, 237, 238, 297, 313, 345, 352, 398, 442, 450, 497, 538, 563, 592, 601, 606, 621, 674, 678, 756, 765, ...
[ 0.041259765625, 0.0517578125, 0.041748046875, 0.040771484375, 0.04150390625, 0.07470703125, 0.041259765625, 0.04052734375, 0.04150390625, 0.015869140625, 0.0419921875, 0.04052734375, 0.109375, 0.041748046875, 0.03955078125, 0.029052734375, 0.1357421875, 0.041259765625, 0.03710937...
b86b112e-1b61-529d-9c55-fb71b96adf97
16,447
0
Title: Select Query on 2 tables, on different database servers I am trying to generate a report by querying 2 databases (Sybase) in classic ASP. I have created 2 connection strings: connA for databaseA connB for databaseB Both databases are present on the same server (don't know if this matters) Queries: ...
277
317
[ "sql" ]
[ "sql", "asp-classic", "vbscript", "sybase" ]
{"accepted_answer_id":16465,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T15:53:19.373000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-03-22T10:32:59.860000+00:00","last_edit_date":"2020-06-20T09:12:55.060000+00:00",...
[ 0.009735107421875, -0.044891357421875, 0.0191192626953125, -0.0391845703125, 0.00830841064453125, 0.0146636962890625, 0.0017957687377929688, 0.007778167724609375, 0.0059661865234375, 0.0135955810546875, -0.0242156982421875, 0.00943756103515625, -0.0012760162353515625, 0.00620269775390625, ...
[ 7, 10, 13, 16, 19, 41, 42, 53, 98, 100, 116, 158, 284, 304, 316, 418, 571, 876, 959, 1257, 1294, 1511, 2839, 2967, 3336, 3365, 3509, 4358, 4843, 5213, 5423, 5701, 5813, 6755, 7008, 7244, 8096, 8447, 9191, 9790, 9803, 10253, 10723, ...
[ 0.00390625, 0.000244140625, 0.03759765625, 0.00537109375, 0.06005859375, 0.0849609375, 0.037353515625, 0.111328125, 0.062255859375, 0.06591796875, 0.1611328125, 0.0888671875, 0.1396484375, 0.109375, 0.08984375, 0.1005859375, 0.1123046875, 0.049072265625, 0.05419921875, 0.033691...
c1d9b4a2-d5b4-5f35-86b5-cc91a8565716
16,458
0
Title: Dynamic Alphabetical Navigation I'm using ColdFusion to return a result set from a SQL database and turn it into a list. I need some way to generate an alphabetical navigation bar for that list. I have ColdFusion and the jQuery library available. I'm looking to generate something like this: A | B | C | .....
134
130
[ "html", "javascript", "sql" ]
[ "javascript", "jquery", "sql", "html", "coldfusion" ]
{"accepted_answer_id":137090,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T15:57:33.827000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["html","javascript","sql"],"last_activity_date":"2020-03-01T01:32:13.547000+00:00","last_edit_date":"2017-12-14T07...
[ 0.017974853515625, -0.0110931396484375, -0.009765625, -0.022674560546875, -0.00702667236328125, -0.000926971435546875, -0.03424072265625, 0.0184478759765625, -0.0016956329345703125, 0.0030612945556640625, -0.0087432861328125, -0.0013036727905273438, 0.04150390625, -0.002788543701171875, ...
[ 20, 23, 62, 100, 111, 153, 214, 313, 335, 372, 391, 398, 756, 903, 1381, 1632, 1884, 1909, 3060, 3871, 3917, 3934, 4527, 5117, 5303, 5423, 6889, 7565, 9191, 11205, 15504, 16487, 16750, 17368, 18158, 19882, 21068, 21533, 30646, 31330, 35...
[ 0.0157470703125, 0.0322265625, 0.091796875, 0.056640625, 0.0286865234375, 0.048828125, 0.0458984375, 0.095703125, 0.1357421875, 0.107421875, 0.140625, 0.0157470703125, 0.03125, 0.048583984375, 0.1865234375, 0.0172119140625, 0.07177734375, 0.1796875, 0.010009765625, 0.0649414062...
2c1a5548-fa49-5262-9bf0-b8f1e69f2cee
16,568
0
Title: How to select the nth row in a SQL database table? I'm interested in learning some (ideally) database agnostic ways of selecting the nth row from a database table. It would also be interesting to see how this can be achieved using the native functionality of the following databases: SQL Server MySQL Pos...
193
205
[ "sql" ]
[ "mysql", "sql", "database", "oracle-database", "postgresql" ]
{"accepted_answer_id":16777,"answer_count":34,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T17:13:11.023000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2023-06-15T19:17:20.327000+00:00","last_edit_date":"2019-07-19T22:51:47.690000+00:00"...
[ 0.0087738037109375, -0.020172119140625, 0.00569915771484375, -0.04034423828125, 0.00232696533203125, -0.00841522216796875, 0.0022220611572265625, 0.00841522216796875, 0.004505157470703125, -0.00531005859375, -0.025299072265625, 0.0006561279296875, -0.006683349609375, 0.017059326171875, 0...
[ 23, 24, 47, 70, 214, 297, 653, 661, 805, 893, 927, 1286, 1295, 1486, 1884, 2082, 2203, 2795, 2806, 3789, 4935, 5570, 6483, 6755, 7134, 7146, 8302, 9523, 9883, 11249, 14042, 14794, 15555, 18444, 19452, 20594, 22317, 22687, 23180, 23415, ...
[ 0.0284423828125, 0.09326171875, 0.056884765625, 0.060546875, 0.068359375, 0.1279296875, 0.2216796875, 0.05859375, 0.091796875, 0.024658203125, 0.1943359375, 0.0361328125, 0.078125, 0.1552734375, 0.0283203125, 0.1201171875, 0.027099609375, 0.03271484375, 0.00048828125, 0.0147705...
c0f02d39-d4c4-59ad-8d7f-a61d734b2f17
16,804
0
Title: Enterprise Reporting Solutions What options are there in the industry for enterprise reporting? I'm currently using SSRS 2005, and know that there is another version coming out with the new release of MSSQL. But, it seems like it might also be a good time to investigate the market to see what else is out ther...
93
90
[ "sql" ]
[ "sql", "reporting-services", "reporting" ]
{"accepted_answer_id":297256,"answer_count":14,"chunk_count":1,"chunk_index":0,"closed_date":"2013-02-18T08:39:33.187000+00:00","creation_date":"2008-08-19T19:38:38.640000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2018-02-23T04:43:27.330000+00:00","last_edit_date":null...
[ -0.00868988037109375, -0.034515380859375, -0.0037326812744140625, 0.01320648193359375, 0.017730712890625, -0.0012197494506835938, -0.0041656494140625, 0.01505279541015625, 0.005889892578125, 0.0189208984375, -0.03997802734375, 0.0235595703125, 0.034271240234375, 0.027252197265625, 0.0266...
[ 4, 10, 23, 67, 70, 100, 111, 186, 214, 297, 442, 621, 678, 765, 1733, 1810, 1884, 1957, 2685, 3525, 3714, 3827, 4127, 4865, 5062, 11389, 13416, 13648, 15396, 15700, 16265, 16839, 17368, 29581, 32603, 34798, 37076, 37202, 38162, 44084, 4...
[ 0.0169677734375, 0.00390625, 0.0177001953125, 0.01220703125, 0.0218505859375, 0.056884765625, 0.016845703125, 0.0198974609375, 0.1533203125, 0.024169921875, 0.020751953125, 0.045654296875, 0.0205078125, 0.030029296875, 0.0152587890625, 0.06494140625, 0.1513671875, 0.0264892578125, ...
ff6ae002-1a46-52a8-93cc-ba791ca16036
17,194
0
Title: SQL query to compare product sales by month I have a Monthly Status database view I need to build a report based on. The data in the view looks something like this: Category | Revenue | Yearh | Month Bikes 10 000 2008 1 Bikes 12 000 2008 2 Bikes 12 000 2008 ...
777
606
[ "sql" ]
[ "sql", "sql-server", "sql-server-2005", "reporting" ]
{"accepted_answer_id":17290,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-19T23:24:47.460000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2017-06-29T14:03:35.943000+00:00","last_edit_date":"2014-11-25T16:38:02.997000+00:00",...
[ 0.007686614990234375, -0.037200927734375, -0.01496124267578125, -0.005779266357421875, 0.046234130859375, 0.03839111328125, 0.00989532470703125, 0.0198974609375, -0.016693115234375, -0.0184783935546875, -0.00405120849609375, 0.011444091796875, -0.0044403076171875, 0.0152587890625, -0.006...
[ 4, 5, 6, 7, 9, 10, 15, 16, 18, 20, 23, 25, 39, 41, 47, 53, 70, 71, 83, 87, 98, 100, 106, 110, 116, 127, 132, 136, 138, 147, 190, 201, 209, 214, 221, 223, 304, 316, 329, 390, 418, 423, 427, 450, 509, 534, 538, 563, 581, ...
[ 0.01318359375, 0.012939453125, 0.012939453125, 0.0126953125, 0.01318359375, 0.013427734375, 0.0126953125, 0.01318359375, 0.0087890625, 0.012939453125, 0.0126953125, 0.01318359375, 0.00048828125, 0.162109375, 0.04443359375, 0.0196533203125, 0.052490234375, 0.01220703125, 0.0129394...
6d1c3d03-897c-53a3-aa5b-64e07e68639e
17,624
0
Title: What is the easiest way using T-SQL / MS-SQL to append a string to existing table cells? I have a table with a 'filename' column. I recently performed an insert into this column but in my haste forgot to append the file extension to all the filenames entered. Fortunately they are all '.jpg' images. How can I ...
107
134
[ "sql" ]
[ "sql", "sql-server", "t-sql" ]
{"accepted_answer_id":17627,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T08:52:00.497000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2012-07-22T12:58:51.037000+00:00","last_edit_date":"2008-10-08T22:41:37.907000+00:00",...
[ 0.0027256011962890625, -0.03753662109375, 0.035614013671875, -0.0209503173828125, 0.042144775390625, 0.00453948974609375, 0.004207611083984375, -0.0134429931640625, -0.0020580291748046875, 0.027496337890625, -0.00644683837890625, 0.0037078857421875, 0.003875732421875, -0.034393310546875, ...
[ 7, 9, 25, 28, 47, 67, 70, 71, 87, 100, 248, 316, 384, 525, 678, 756, 759, 831, 1544, 1556, 3365, 3447, 3917, 3934, 6097, 9904, 11249, 11435, 11627, 15555, 16265, 17309, 17368, 23180, 25687, 26698, 28350, 29822, 30957, 35509, 36849, 38...
[ 0.01708984375, 0.029052734375, 0.000244140625, 0.0556640625, 0.1083984375, 0.037109375, 0.0260009765625, 0.1103515625, 0.0194091796875, 0.051513671875, 0.0196533203125, 0.0927734375, 0.1474609375, 0.111328125, 0.0009765625, 0.046630859375, 0.006591796875, 0.000732421875, 0.154296...
d2691fcb-1114-5c7c-8619-675f7cdc74d8
18,194
0
Title: Best way to learn SQL Server So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, boo...
100
106
[ "sql" ]
[ "sql", "sql-server", "database" ]
{"accepted_answer_id":18211,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":"2013-11-19T09:47:38.430000+00:00","creation_date":"2008-08-20T15:14:13.247000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2013-11-19T00:22:15.373000+00:00","last_edit_date":"2009-...
[ 0.00347900390625, -0.01462554931640625, 0.010009765625, -0.022979736328125, 0.0254669189453125, -0.01474761962890625, -0.02166748046875, 0.0124969482421875, -0.0050048828125, 0.0017251968383789062, -0.071533203125, 0.0025177001953125, 0.019775390625, 0.028076171875, 0.036712646484375, ...
[ 47, 70, 87, 136, 163, 442, 458, 678, 759, 1061, 1286, 1672, 2408, 2804, 2965, 3444, 3525, 3687, 3714, 3917, 4034, 6275, 10002, 11345, 12447, 18158, 20697, 20949, 22687, 25550, 30698, 33720, 40715, 41884, 42840, 46876, 48962, 63399, 77275, ...
[ 0.091796875, 0.007080078125, 0.035888671875, 0.01318359375, 0.034423828125, 0.0157470703125, 0.07080078125, 0.078125, 0.029541015625, 0.02734375, 0.0751953125, 0.0703125, 0.009521484375, 0.0380859375, 0.1025390625, 0.064453125, 0.064453125, 0.09765625, 0.099609375, 0.1059570312...
f6edcb06-3ce3-5803-a1ba-86ef81c81adb
18,216
0
Title: Query a union table with fields as columns I'm not quite sure if this is possible, or falls into the category of pivot tables, but I figured I'd go to the pros to see. I have three basic tables: Card, Property, and CardProperty. Since cards do not have the same properties, and often multiple values for the sa...
329
352
[ "sql" ]
[ "sql", "database-design", "stored-procedures" ]
{"accepted_answer_id":18239,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T15:23:02.400000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2021-05-20T15:21:44.293000+00:00","last_edit_date":"2017-08-04T14:14:30.530000+00:00",...
[ -0.0036830902099609375, -0.019012451171875, 0.006534576416015625, 0.005939483642578125, 0.0019893646240234375, -0.007511138916015625, 0.007572174072265625, 0.01556396484375, 0.002613067626953125, 0.0172271728515625, -0.0293426513671875, 0.01181793212890625, 0.02008056640625, -0.01864624023...
[ 18, 53, 62, 71, 100, 106, 126, 206, 237, 294, 316, 516, 605, 678, 707, 756, 765, 831, 903, 939, 959, 1029, 1264, 1779, 1884, 1957, 2053, 2776, 2806, 3365, 3611, 3820, 3853, 4343, 4734, 5423, 5465, 5701, 5809, 6096, 6397, 7722, 10644...
[ 0.055908203125, 0.0849609375, 0.01904296875, 0.00634765625, 0.002197265625, 0.0294189453125, 0.10107421875, 0.1142578125, 0.1318359375, 0.095703125, 0.1728515625, 0.171875, 0.1240234375, 0.03857421875, 0.0140380859375, 0.0272216796875, 0.0107421875, 0.0289306640625, 0.01477050781...
3ad2544e-df5a-58b9-9ffd-e3940cefafe8
18,533
0
Title: C#: What Else Do You Use Besides DataSet I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, ther...
190
225
[ ".net", "c#", "sql" ]
[ "c#", ".net", "sql", "dataset" ]
{"accepted_answer_id":18539,"answer_count":13,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T18:36:02.310000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","c#","sql"],"last_activity_date":"2021-07-06T15:48:31.517000+00:00","last_edit_date":"2008-09-09T22:13:42.6...
[ 0.01390838623046875, -0.0250244140625, -0.01107025146484375, 0.0082855224609375, 0.016693115234375, -0.0224761962890625, 0.0016727447509765625, -0.0031719207763671875, 0.032440185546875, 0.0111846923828125, -0.032440185546875, 0.0038814544677734375, 0.002216339111328125, 0.0056190490722656...
[ 5, 56, 126, 133, 136, 159, 184, 294, 313, 434, 540, 618, 645, 678, 988, 1029, 1286, 2234, 2583, 2860, 2886, 2965, 3444, 3789, 4127, 4358, 4527, 4785, 4865, 4904, 5885, 6048, 6183, 6226, 6366, 7831, 8781, 11809, 12319, 12724, 13893, 16...
[ 0.02294921875, 0.1552734375, 0.1875, 0.0791015625, 0.005859375, 0.0048828125, 0.08056640625, 0.193359375, 0.012939453125, 0.1123046875, 0.0498046875, 0.09375, 0.0361328125, 0.024658203125, 0.08056640625, 0.109375, 0.015869140625, 0.0439453125, 0.0257568359375, 0.03125, 0.1347...
b5135576-2faa-5f33-bd4e-fcbe470bdef6
18,655
0
Title: Why do we need entity objects? I really need to see some honest, thoughtful debate on the merits of the currently accepted enterprise application design paradigm. I am not convinced that entity objects should exist. By entity objects I mean the typical things we tend to build for our applications, like "Per...
812
888
[ "sql" ]
[ "sql", "database", "orm", "entities" ]
{"accepted_answer_id":null,"answer_count":41,"chunk_count":2,"chunk_index":0,"closed_date":"2016-06-18T16:17:52.227000+00:00","creation_date":"2008-08-20T19:37:53.597000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["sql"],"last_activity_date":"2016-06-18T16:18:54.843000+00:00","last_edit_date":"2016...
[ 0.01824951171875, -0.006404876708984375, -0.003055572509765625, 0.0008406639099121094, 0.03460693359375, -0.0191802978515625, -0.007659912109375, 0.025146484375, 0.0276031494140625, -0.00331878662109375, -0.050750732421875, -0.006694793701171875, -0.0142669677734375, 0.0170745849609375, ...
[ 4, 5, 6, 7, 8, 9, 10, 12, 13, 17, 18, 19, 23, 25, 28, 32, 39, 41, 42, 47, 51, 53, 54, 56, 67, 70, 71, 79, 83, 86, 87, 90, 98, 99, 100, 106, 111, 116, 136, 138, 142, 186, 214, 221, 256, 268, 275, 289, 297, 304, 316, ...
[ 0.044677734375, 0.044189453125, 0.04443359375, 0.154296875, 0.060791015625, 0.04345703125, 0.044677734375, 0.04345703125, 0.04443359375, 0.04345703125, 0.004150390625, 0.044677734375, 0.04443359375, 0.044677734375, 0.0439453125, 0.014404296875, 0.043701171875, 0.0294189453125, 0....
f1436ac4-cc93-5650-b0ef-b499a6b73bf7
18,655
1
Title: Why do we need entity objects? r responses, if I am missing something I really want to know what it is, and why I should change my thinking. [Edit] It looks like this question is suddenly active again, so now that we have the new comment feature I have commented directly on several answers. Thanks for the r...
337
373
[ "sql" ]
[ "sql", "database", "orm", "entities" ]
{"accepted_answer_id":null,"answer_count":41,"chunk_count":2,"chunk_index":1,"closed_date":"2016-06-18T16:17:52.227000+00:00","creation_date":"2008-08-20T19:37:53.597000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["sql"],"last_activity_date":"2016-06-18T16:18:54.843000+00:00","last_edit_date":"2016...
[ 0.0016956329345703125, -0.01160430908203125, -0.031402587890625, -0.0170135498046875, 0.0281982421875, -0.0196380615234375, -0.01374053955078125, 0.01207733154296875, 0.0325927734375, -0.0031833648681640625, -0.06378173828125, 0.01486968994140625, -0.01666259765625, -0.0015916824340820312,...
[ 7, 47, 54, 64, 99, 136, 150, 163, 180, 190, 201, 449, 456, 594, 621, 642, 707, 738, 756, 831, 939, 959, 1059, 1257, 1363, 1829, 2053, 2174, 2367, 2663, 2965, 3299, 3444, 3714, 3789, 3871, 4027, 4343, 5351, 5608, 5809, 6126, 6183, ...
[ 0.12890625, 0.0203857421875, 0.046142578125, 0.0810546875, 0.009765625, 0.003173828125, 0.008544921875, 0.005126953125, 0.13671875, 0.03271484375, 0.050048828125, 0.0029296875, 0.06494140625, 0.2197265625, 0.0147705078125, 0.07421875, 0.09521484375, 0.1083984375, 0.02734375, 0....
345bc483-2451-5dbb-8670-f139f25befb2
18,764
0
Title: What's the difference between a Table Scan and a Clustered Index Scan? Since both a Table Scan and a Clustered Index Scan essentially scan all records in the table, why is a Clustered Index Scan supposedly better? As an example - what's the performance difference between the following when there are many reco...
146
150
[ "sql" ]
[ "sql", "sql-server", "indexing" ]
{"accepted_answer_id":18906,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T20:38:50.283000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-10-15T18:49:21.750000+00:00","last_edit_date":"2013-12-19T18:37:14.807000+00:00",...
[ -0.00201416015625, -0.0266571044921875, -0.0034809112548828125, 0.007049560546875, 0.040771484375, 0.005153656005859375, 0.01184844970703125, -0.0029926300048828125, 0.01042938232421875, 0.01203155517578125, -0.0087127685546875, 0.0158843994140625, 0.0117340087890625, -0.002073287963867187...
[ 70, 136, 297, 316, 756, 1515, 2525, 2685, 3934, 5941, 7146, 9254, 11522, 15044, 15400, 17721, 22799, 23180, 23718, 31471, 34224, 36849, 42272, 44954, 56574, 60212, 65533, 85590, 96190, 112997, 115923, 134598, 140077, 158978, 159978, 182324, 183...
[ 0.0126953125, 0.03662109375, 0.045166015625, 0.0223388671875, 0.01953125, 0.1328125, 0.0849609375, 0.0029296875, 0.004638671875, 0.076171875, 0.0927734375, 0.083984375, 0.1142578125, 0.00537109375, 0.0228271484375, 0.059326171875, 0.0869140625, 0.1572265625, 0.1416015625, 0.181...
54e98074-a9ec-537c-83c4-99035f31c8fe
18,783
0
Title: Favourite performance tuning tricks When you have a query or stored procedure that needs performance tuning, what are some of the first things you try?
33
38
[ "sql" ]
[ "sql", "sql-server", "database", "performance" ]
{"accepted_answer_id":null,"answer_count":29,"chunk_count":1,"chunk_index":0,"closed_date":"2011-11-28T01:23:55.597000+00:00","creation_date":"2008-08-20T20:45:15.260000+00:00","has_accepted_answer":false,"is_closed":true,"languages":["sql"],"last_activity_date":"2022-09-09T14:06:07.450000+00:00","last_edit_date":"2014...
[ 0.0214385986328125, -0.0087127685546875, 0.007537841796875, -0.0166015625, 0.0220184326171875, -0.0269775390625, -0.0255584716796875, 0.0046234130859375, 0.0147247314453125, -0.0009126663208007812, -0.055816650390625, 0.042633056640625, -0.010772705078125, 0.007213592529296875, 0.0268554...
[ 7, 41, 70, 111, 370, 398, 563, 592, 621, 707, 765, 1294, 1486, 2367, 3060, 4343, 5117, 8966, 9790, 23718, 27117, 48962, 50491, 88308, 141775 ]
[ 0.080078125, 0.1142578125, 0.0257568359375, 0.049072265625, 0.2158203125, 0.06201171875, 0.038818359375, 0.146484375, 0.04638671875, 0.0206298828125, 0.043212890625, 0.09765625, 0.1318359375, 0.091796875, 0.051513671875, 0.142578125, 0.1396484375, 0.1318359375, 0.1708984375, 0....
7006cc9d-273f-542f-8120-5789c578e199
18,952
0
Title: What is your reporting tool of choice? Every project invariably needs some type of reporting functionality. From a foreach loop in your language of choice to a full blow BI platform. To get the job done what tools, widgets, platforms has the group used with success, frustration and failure?
63
68
[ "sql" ]
[ "sql", "reporting", "business-intelligence" ]
{"accepted_answer_id":18977,"answer_count":23,"chunk_count":1,"chunk_index":0,"closed_date":"2011-10-05T05:18:37.970000+00:00","creation_date":"2008-08-20T22:01:16.513000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2011-04-18T18:49:40.770000+00:00","last_edit_date":"2008...
[ 0.017120361328125, -0.01806640625, -0.002536773681640625, 0.007801055908203125, 0.042236328125, -0.01290130615234375, -0.0041351318359375, 0.0159454345703125, 0.01512908935546875, 0.01108551025390625, -0.0243988037109375, 0.0219268798828125, 0.0266265869140625, 0.0207672119140625, -0.004...
[ 23, 47, 83, 100, 111, 214, 678, 717, 935, 1556, 2046, 2481, 3060, 4393, 4865, 10644, 11814, 12447, 13416, 13452, 13651, 16940, 17234, 21115, 21690, 27117, 28090, 36272, 40956, 41581, 44126, 46876, 48962, 55516, 72977, 78458, 87769, 102310, ...
[ 0.00439453125, 0.007568359375, 0.047607421875, 0.053466796875, 0.134765625, 0.158203125, 0.031982421875, 0.00341796875, 0.0986328125, 0.0068359375, 0.051025390625, 0.07373046875, 0.037109375, 0.0439453125, 0.06787109375, 0.1201171875, 0.115234375, 0.095703125, 0.2119140625, 0.1...
c5666b19-851e-5ba2-a2aa-9cd99160814f
19,058
0
Title: What is the difference between oracle's 'yy' and 'rr' date mask? Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp where hiredate = todate('01/05/81','dd/mm/rr') return different results
84
86
[ "sql" ]
[ "sql", "oracle-database" ]
{"accepted_answer_id":19061,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T23:07:51.250000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-04-05T16:30:48.190000+00:00","last_edit_date":null,"question_id":19058,"score":30...
[ 0.004581451416015625, -0.0106964111328125, -0.00868988037109375, -0.034515380859375, 0.017730712890625, 0.01093292236328125, -0.0191497802734375, 0.004550933837890625, 0.0107574462890625, -0.007625579833984375, 0.012176513671875, 0.0018768310546875, 0.040191650390625, -0.01146697998046875,...
[ 13, 25, 64, 67, 70, 107, 136, 1274, 1295, 2203, 2276, 3620, 4028, 5622, 6746, 6909, 7021, 11030, 12921, 13556, 17404, 17489, 17721, 20244, 29161, 30646, 34034, 36849, 48962, 50188, 50339, 60212, 89536 ]
[ 0.1572265625, 0.002685546875, 0.041015625, 0.1796875, 0.054443359375, 0.134765625, 0.0908203125, 0.0908203125, 0.0291748046875, 0.0078125, 0.1044921875, 0.16796875, 0.0849609375, 0.150390625, 0.056640625, 0.10302734375, 0.1923828125, 0.1953125, 0.1064453125, 0.177734375, 0.17...
ee5723f2-8e7b-57b6-8f77-35cde09a3dcf
19,089
0
Title: How do I do an Upsert Into Table? I have a view that has a list of jobs in it, with data like who they're assigned to and the stage they are in. I need to write a stored procedure that returns how many jobs each person has at each stage. So far I have this (simplified): DECLARE @ResultTable table ( Staff...
375
411
[ "sql" ]
[ "sql", "sql-server", "t-sql" ]
{"accepted_answer_id":19109,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-20T23:46:13.360000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2017-04-09T14:20:12.127000+00:00","last_edit_date":"2008-08-31T01:31:06.693000+00:00",...
[ 0.01038360595703125, -0.01509857177734375, 0.0195770263671875, -0.003192901611328125, 0.033905029296875, 0.01247406005859375, 0.0185089111328125, -0.007373809814453125, 0.033660888671875, 0.0276947021484375, -0.0274505615234375, 0.0012607574462890625, -0.00501251220703125, -0.0151596069335...
[ 7, 18, 23, 54, 87, 106, 142, 188, 304, 360, 418, 618, 756, 919, 1286, 1374, 1556, 1632, 1733, 1884, 1961, 2053, 2060, 2174, 2203, 2301, 2806, 2886, 2967, 3445, 3525, 3559, 3642, 3871, 4295, 4343, 4420, 5117, 5252, 5303, 5941, 6183, ...
[ 0.06201171875, 0.0673828125, 0.025390625, 0.0791015625, 0.043701171875, 0.060546875, 0.04248046875, 0.150390625, 0.1103515625, 0.1083984375, 0.048095703125, 0.0791015625, 0.0263671875, 0.0274658203125, 0.0126953125, 0.0537109375, 0.05322265625, 0.00439453125, 0.091796875, 0.083...
7a5f151e-3a76-5cc0-b32e-64360ee6a5f0
19,412
0
Title: How to request a random row in SQL? How can I request a random row (or as close to truly random as possible) in pure SQL?
34
36
[ "sql" ]
[ "sql", "random" ]
{"accepted_answer_id":19419,"answer_count":32,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T06:28:49.927000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2024-01-27T07:23:46.277000+00:00","last_edit_date":"2023-04-28T22:11:04.613000+00:00"...
[ 0.0278472900390625, -0.0123748779296875, 0.0005316734313964844, -0.008331298828125, 0.043548583984375, -0.0196380615234375, -0.0333251953125, 0.0041351318359375, -0.008331298828125, 0.006931304931640625, -0.026763916015625, 0.0123748779296875, 0.01023101806640625, 0.01154327392578125, 0....
[ 10, 12, 23, 47, 237, 748, 831, 7722, 11249, 15555, 20903, 34166, 48962, 50336, 80866, 87607, 96759 ]
[ 0.0390625, 0.00634765625, 0.0400390625, 0.1328125, 0.05810546875, 0.03173828125, 0.059814453125, 0.1328125, 0.1064453125, 0.2490234375, 0.189453125, 0.16796875, 0.0791015625, 0.23046875, 0.271484375, 0.142578125, 0.255859375 ]
142b0b69-f34b-5a16-ba7a-9030cf46e6bd
19,437
0
Title: Custom font in SQL Server 2005 Reporting Services I'm having issues with my SQL Reporting Services reports. I'm using a custom font for report headers, and when deployed to the server it does not render correctly when I print or export to PDF/TIFF. I have installed the font on the server. Is there anything else...
310
337
[ "sql" ]
[ "sql", "reporting-services" ]
{"accepted_answer_id":19444,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T07:16:16.087000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2011-12-15T21:18:49.753000+00:00","last_edit_date":"2008-08-21T23:36:15.480000+00:00",...
[ -0.0206298828125, -0.0233612060546875, 0.0303497314453125, 0.0031261444091796875, 0.00995635986328125, 0.015411376953125, -0.029876708984375, 0.027984619140625, 0.009307861328125, 0.0305938720703125, 0.00800323486328125, 0.0208587646484375, 0.0233612060546875, 0.006610870361328125, 0.002...
[ 7, 18, 23, 54, 56, 100, 214, 707, 756, 959, 1284, 1314, 1957, 2967, 3525, 3871, 4078, 4527, 4677, 5526, 5962, 6859, 7464, 7639, 10336, 10723, 11374, 12401, 13158, 13416, 13909, 15935, 16065, 16530, 17137, 17368, 19048, 19441, 20450, 20600...
[ 0.010986328125, 0.0654296875, 0.005859375, 0.03271484375, 0.0029296875, 0.00927734375, 0.07763671875, 0.03564453125, 0.0009765625, 0.06689453125, 0.010009765625, 0.0419921875, 0.115234375, 0.1162109375, 0.0194091796875, 0.0380859375, 0.23046875, 0.07470703125, 0.0048828125, 0.0...
c828f43d-034f-5ca0-9dbd-f0c85a8bffe7
19,458
0
Title: Which RDBMS should I use? I have developed a high speed transactional server for transfering data over the internet so I do not need to rely upon a database implementation like MySQL to provide this. That opens up the question of which SQL version to use? I really like SQLite, but I am not convinced it is ind...
328
369
[ "sql" ]
[ "sql" ]
{"accepted_answer_id":null,"answer_count":2,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T07:58:10.277000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2010-12-15T17:58:17.360000+00:00","last_edit_date":"2010-12-15T17:58:17.360000+00:00",...
[ 0.021392822265625, -0.00931549072265625, -0.0078125, -0.0088958740234375, 0.0186309814453125, 0.009918212890625, -0.015380859375, 0.0170745849609375, 0.017181396484375, -0.007152557373046875, -0.0394287109375, 0.0155029296875, 0.005588531494140625, 0.034149169921875, 0.025482177734375, ...
[ 47, 87, 257, 289, 305, 382, 400, 459, 538, 627, 669, 759, 864, 959, 1181, 1299, 1486, 1820, 1884, 2053, 2109, 3129, 3525, 3871, 4032, 4271, 4516, 4527, 5117, 5252, 5369, 5608, 5609, 6183, 6635, 6650, 7136, 7344, 8110, 9433, 10002, 107...
[ 0.002685546875, 0.0152587890625, 0.04931640625, 0.0279541015625, 0.0654296875, 0.078125, 0.039794921875, 0.068359375, 0.046142578125, 0.06982421875, 0.05322265625, 0.05908203125, 0.0751953125, 0.0234375, 0.123046875, 0.1474609375, 0.255859375, 0.050048828125, 0.1669921875, 0.00...
1fc4e330-acbe-540d-bd0e-af6f1c45fdc7
20,081
0
Title: Best way to encapsulate complex Oracle PL/SQL cursor logic as a view? I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic is written as a pipelined table function,...
748
769
[ "sql" ]
[ "sql", "oracle-database", "plsql" ]
{"accepted_answer_id":97091,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T14:29:48.773000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-02-05T07:06:14.957000+00:00","last_edit_date":"2008-09-18T16:10:23.977000+00:00",...
[ 0.0166168212890625, -0.01287841796875, 0.006500244140625, -0.0004458427429199219, 0.049835205078125, -0.0021514892578125, 0.00885009765625, 0.0440673828125, 0.01462554931640625, -0.01456451416015625, -0.03851318359375, 0.007343292236328125, -0.00716400146484375, -0.00830841064453125, 0.0...
[ 4, 5, 6, 7, 8, 9, 10, 13, 15, 16, 18, 22, 23, 25, 39, 41, 42, 47, 53, 62, 64, 67, 70, 71, 83, 100, 106, 107, 111, 116, 118, 136, 142, 162, 172, 177, 186, 188, 206, 209, 214, 237, 241, 289, 297, 351, 384, 397, 398, 427,...
[ 0.012939453125, 0.01220703125, 0.012939453125, 0.012451171875, 0.1923828125, 0.012939453125, 0.022216796875, 0.01220703125, 0.0126953125, 0.011474609375, 0.010986328125, 0.04443359375, 0.013671875, 0.012451171875, 0.012939453125, 0.07763671875, 0.1474609375, 0.0126953125, 0.01269...
4c627c13-7bda-5f7e-babf-0570da37ea73
20,363
0
Title: SQL Server 2005 - Export table programmatically (run a .sql file to rebuild it) I have a database with a table Customers that have some data I have another database in the office that everything is the same, but my table Customers is empty How can I create a sql file in SQL Server 2005 (T-SQL) that takes ever...
140
145
[ "sql" ]
[ "sql", "sql-server", "sql-server-2005", "database-table" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T16:04:31.823000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2025-05-23T18:39:13.030000+00:00","last_edit_date":"2017-03-23T15:39:42.307000+00:00",...
[ -0.0185546875, -0.028839111328125, 0.0223388671875, -0.00208282470703125, 0.0287322998046875, -0.0130615234375, -0.0035610198974609375, 0.0211639404296875, 0.01146697998046875, 0.03546142578125, -0.01282501220703125, 0.0010194778442382812, 0.019866943359375, -0.0182037353515625, 0.010520...
[ 5, 7, 9, 18, 23, 54, 83, 87, 91, 98, 188, 456, 618, 831, 2053, 4078, 4393, 5117, 5701, 11435, 11680, 11720, 15700, 16428, 22687, 23179, 23180, 26818, 28271, 28282, 31648, 33120, 36880, 43658, 45367, 48962, 51776, 63399, 68330, 71407, 71...
[ 0.0107421875, 0.1044921875, 0.00830078125, 0.0634765625, 0.002197265625, 0.0390625, 0.0179443359375, 0.005126953125, 0.03173828125, 0.027587890625, 0.1708984375, 0.076171875, 0.109375, 0.0517578125, 0.027587890625, 0.2373046875, 0.150390625, 0.03369140625, 0.09716796875, 0.2031...
8f2ecc84-9e43-5f8f-b0f5-c8bdadf3aded
20,392
0
Title: Is it OK to drop sql statistics? We've been trying to alter a lot of columns from nullable to not nullable, which involves dropping all the associated objects, making the change, and recreating the associated objects. We've been using SQL Compare to generate the scripts, but I noticed that SQL Compare doesn't...
101
117
[ "sql" ]
[ "sql", "sql-server", "scripting", "statistics" ]
{"accepted_answer_id":20486,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T16:12:58.540000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2013-12-16T10:21:38.767000+00:00","last_edit_date":null,"question_id":20392,"score":5,...
[ 0.001312255859375, -0.022186279296875, -0.018035888671875, 0.017913818359375, 0.04864501953125, -0.01073455810546875, -0.0212249755859375, 0.03985595703125, -0.0161285400390625, -0.00830078125, -0.055511474609375, 0.0278778076171875, -0.0201568603515625, 0.00262451171875, 0.0052795410156...
[ 7, 13, 18, 91, 316, 442, 959, 1779, 2071, 2661, 2856, 3365, 3664, 4488, 5299, 5915, 6096, 6863, 9229, 10366, 14315, 15490, 15549, 22027, 26499, 31577, 36069, 36746, 37264, 48962, 63399, 80835, 80866, 88308, 89011, 99247, 113307, 132936, 137...
[ 0.111328125, 0.1162109375, 0.06298828125, 0.0177001953125, 0.07568359375, 0.0203857421875, 0.046630859375, 0.000244140625, 0.0218505859375, 0.169921875, 0.09033203125, 0.0673828125, 0.1318359375, 0.040283203125, 0.003662109375, 0.05078125, 0.099609375, 0.03515625, 0.1513671875, ...
3f711c1b-38e2-55d3-8cd7-0dc282305f60
20,484
0
Title: Use a LIKE clause in part of an INNER JOIN Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain. I'm creating a procedure that is going to take a list of keywords to be searched for in a column that contain...
459
543
[ "sql" ]
[ "sql", "sql-server", "design-patterns" ]
{"accepted_answer_id":20538,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T16:45:48.183000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2024-07-29T21:20:37.350000+00:00","last_edit_date":"2016-08-03T19:05:23.773000+00:00"...
[ 0.0026836395263671875, -0.007904052734375, 0.0189971923828125, -0.01085662841796875, 0.0213470458984375, -0.006988525390625, 0.01079559326171875, 0.002079010009765625, 0.0015707015991210938, -0.0274810791015625, -0.03375244140625, 0.0250091552734375, 0.0179290771484375, 0.00080013275146484...
[ 10, 11, 13, 23, 41, 100, 277, 316, 339, 366, 581, 678, 831, 837, 892, 903, 944, 997, 1029, 1294, 1884, 2704, 2831, 3365, 3444, 3564, 3611, 3917, 3949, 4171, 4205, 4343, 4393, 4438, 4527, 4726, 5303, 5423, 5646, 5881, 6397, 6713, 675...
[ 0.03955078125, 0.12890625, 0.1796875, 0.00048828125, 0.10693359375, 0.09521484375, 0.0255126953125, 0.0595703125, 0.185546875, 0.1064453125, 0.000244140625, 0.0556640625, 0.000732421875, 0.1259765625, 0.040771484375, 0.005126953125, 0.09375, 0.0458984375, 0.078125, 0.0971679687...
9d29f2ef-bbb6-540d-a32f-eb8cb48e886f
20,840
0
Title: SQL Server - Dirty Reads Pros & Cons Why should I or shouldn't I use dirty reads: set transaction isolation level read uncommitted in SQL Server?
37
44
[ "sql" ]
[ "sql", "sql-server" ]
{"accepted_answer_id":20890,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T19:12:59.013000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2015-12-27T05:48:05.460000+00:00","last_edit_date":null,"question_id":20840,"score":9,...
[ 0.002460479736328125, -0.0182342529296875, -0.019195556640625, -0.0036754608154296875, 0.043426513671875, -0.01763916015625, 0.01116180419921875, 0.0170440673828125, -0.004589080810546875, 0.01397705078125, -0.057830810546875, -0.002475738525390625, 0.0164337158203125, -0.012481689453125, ...
[ 6, 7, 51, 277, 619, 707, 939, 1250, 3674, 4007, 4527, 4764, 5402, 5423, 5608, 12301, 17366, 19946, 22687, 39215, 48962, 80866, 124161, 219488 ]
[ 0.0830078125, 0.0986328125, 0.0419921875, 0.006103515625, 0.06982421875, 0.017333984375, 0.1982421875, 0.13671875, 0.03076171875, 0.0869140625, 0.083984375, 0.251953125, 0.18359375, 0.07470703125, 0.040771484375, 0.2412109375, 0.13671875, 0.1806640625, 0.1357421875, 0.159179687...
a7f9aaec-18bb-55a6-b8ec-164165141cf3
20,856
0
Title: Recommended SQL database design for tags or tagging I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to me, but does it scale?), adding a fixed number of possible TagID columns to ItemID (seems like a bad idea), Keeping tags in a text column that's comma...
112
132
[ "sql" ]
[ "sql", "database-design", "tags", "data-modeling", "tagging" ]
{"accepted_answer_id":20871,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":"2016-01-03T12:44:16.657000+00:00","creation_date":"2008-08-21T19:18:05.773000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2015-11-28T09:51:15.113000+00:00","last_edit_date":"2015-...
[ 0.031036376953125, -0.020965576171875, 0.0265350341796875, -0.01131439208984375, 0.007049560546875, 0.006011962890625, -0.03436279296875, 0.006988525390625, 0.00250244140625, 0.00675201416015625, -0.0364990234375, 0.0293731689453125, 0.0079345703125, -0.007080078125, 0.04052734375, 0.0...
[ 47, 100, 136, 184, 291, 308, 316, 329, 425, 707, 1884, 2327, 2965, 3365, 3642, 4224, 4331, 4488, 4837, 5809, 6494, 6528, 7146, 7722, 7909, 7986, 10422, 10846, 14012, 14602, 17368, 17721, 23180, 26783, 27148, 29479, 36659, 41361, 48322, 49...
[ 0.03076171875, 0.062255859375, 0.01318359375, 0.1416015625, 0.0947265625, 0.255859375, 0.083984375, 0.038818359375, 0.0751953125, 0.04345703125, 0.055908203125, 0.0167236328125, 0.10546875, 0.09130859375, 0.037109375, 0.0257568359375, 0.21484375, 0.0576171875, 0.2021484375, 0.0...
8a06f1cd-1cf0-53f6-a409-6fd60bb8516f
20,876
0
Title: Best way to perform dynamic subquery in MS Reporting Services? I'm new to SQL Server Reporting Services, and was wondering the best way to do the following: Query to get a list of popular IDs Subquery on each item to get properties from another table Ideally, the final report columns would look like...
151
167
[ "sql" ]
[ "sql", "sql-server", "reporting-services", "service", "reporting" ]
{"accepted_answer_id":20895,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T19:25:33.680000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-08-03T16:12:05.377000+00:00","last_edit_date":"2016-08-03T16:12:05.377000+00:00",...
[ 0.0171966552734375, -0.00689697265625, 0.01116943359375, -0.0170745849609375, 0.03369140625, 0.0146331787109375, 0.0103302001953125, 0.01468658447265625, -0.0028667449951171875, 0.034149169921875, -0.034393310546875, 0.01947021484375, 0.0131988525390625, 0.0279541015625, 0.00573348999023...
[ 23, 41, 53, 54, 56, 100, 214, 316, 903, 944, 1294, 1295, 1614, 1632, 1779, 1884, 2046, 2704, 2886, 2965, 3365, 3525, 3917, 5303, 5700, 6051, 6713, 7146, 8273, 11338, 11345, 12601, 12638, 13416, 15555, 15700, 16265, 22687, 23180, 32354, ...
[ 0.0303955078125, 0.08349609375, 0.028076171875, 0.006103515625, 0.059814453125, 0.035400390625, 0.0693359375, 0.068359375, 0.007568359375, 0.1640625, 0.16015625, 0.05078125, 0.2275390625, 0.00048828125, 0.008544921875, 0.04052734375, 0.0703125, 0.1298828125, 0.07470703125, 0.12...
bc5d9a13-e38f-5edd-84fc-098f67522a32
21,280
0
Title: Am I missing something about LINQ? I seem to be missing something about LINQ. To me, it looks like it's taking some of the elements of SQL that I like the least and moving them into the C# language and using them for other things. I mean, I could see the benefit of using SQL-like statements on things other th...
106
111
[ "c#", "sql" ]
[ "c#", "sql", "linq" ]
{"accepted_answer_id":21292,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T21:54:56.317000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["c#","sql"],"last_activity_date":"2010-06-07T04:46:50.773000+00:00","last_edit_date":"2008-08-21T21:59:02.797000+00...
[ 0.017974853515625, -0.026611328125, -0.01061248779296875, -0.00374603271484375, 0.0194244384765625, -0.0160675048828125, 0.01360321044921875, 0.0127105712890625, 0.014984130859375, 0.008270263671875, -0.028533935546875, 0.020263671875, -0.021942138671875, 0.01534271240234375, 0.018707275...
[ 6, 87, 111, 313, 444, 1672, 1810, 1884, 1957, 2022, 2737, 3060, 3688, 3934, 4904, 5062, 5809, 8966, 9844, 13695, 15400, 17368, 19713, 33022, 33342, 35971, 36663, 46610, 46876, 48903, 48962, 63399, 63805, 68073, 80854, 80866, 98567, 132283 ]
[ 0.011962890625, 0.0712890625, 0.03271484375, 0.042724609375, 0.008544921875, 0.0732421875, 0.046142578125, 0.1494140625, 0.036376953125, 0.0791015625, 0.2578125, 0.006103515625, 0.000732421875, 0.0576171875, 0.1875, 0.0751953125, 0.0172119140625, 0.02978515625, 0.0966796875, 0....
bba85b34-be39-5b33-883f-ec8f2cc7ad12
21,388
0
Title: Represent Ordering in a Relational Database I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display t...
480
539
[ "sql" ]
[ "sql", "database", "django", "django-models" ]
{"accepted_answer_id":694735,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-21T23:01:30.400000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2018-12-15T15:04:28.223000+00:00","last_edit_date":"2009-03-29T14:48:12.173000+00:00...
[ 0.0278167724609375, -0.02020263671875, 0.0252838134765625, -0.0189971923828125, -0.001232147216796875, -0.00009262561798095703, -0.017547607421875, 0.02044677734375, 0.042572021484375, -0.0114288330078125, -0.00786590576171875, 0.0258941650390625, -0.016571044921875, 0.0002627372741699219,...
[ 4, 5, 6, 7, 10, 11, 14, 15, 16, 18, 19, 23, 25, 39, 47, 53, 54, 70, 71, 83, 99, 100, 111, 136, 142, 153, 162, 186, 214, 221, 237, 247, 284, 289, 297, 316, 390, 398, 416, 442, 450, 456, 538, 601, 621, 678, 765, 805, 814, ...
[ 0.01416015625, 0.0145263671875, 0.0142822265625, 0.052734375, 0.0142822265625, 0.013427734375, 0.013671875, 0.013671875, 0.013916015625, 0.001220703125, 0.013916015625, 0.06103515625, 0.014404296875, 0.013427734375, 0.013916015625, 0.0140380859375, 0.005126953125, 0.014404296875, ...
b4499ab4-3cc8-54ef-a2d3-ad7a8f985640
21,489
0
Title: Grouping runs of data SQL Experts, Is there an efficient way to group runs of data together using SQL? Or is it going to be more efficient to process the data in code. For example if I have the following data: ID|Name 01|Harry Johns 02|Adam Taylor 03|John Smith 04|John Smith 05|Bill Manning 06|John Smit...
145
132
[ "sql" ]
[ "sql" ]
{"accepted_answer_id":21545,"answer_count":6,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T00:13:06+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2014-05-04T21:51:04.703000+00:00","last_edit_date":"2014-05-04T21:51:04.703000+00:00","questi...
[ 0.01462554931640625, -0.0171051025390625, -0.0006976127624511719, -0.0080108642578125, 0.0205078125, 0.0241546630859375, 0.0171051025390625, -0.00855255126953125, 0.045379638671875, 0.026336669921875, -0.01140594482421875, 0.026824951171875, 0.0178375244140625, -0.015533447265625, 0.0201...
[ 5, 6, 7, 23, 47, 111, 186, 214, 479, 592, 903, 959, 1286, 1294, 1572, 1737, 2053, 2071, 2685, 2704, 3347, 3413, 3871, 3917, 4648, 4777, 4880, 4939, 5098, 5742, 7693, 9384, 9433, 10760, 11338, 16173, 17368, 18151, 19893, 20904, 21115, ...
[ 0.00390625, 0.004150390625, 0.0986328125, 0.0615234375, 0.044189453125, 0.130859375, 0.011962890625, 0.1044921875, 0.10107421875, 0.1669921875, 0.010986328125, 0.032958984375, 0.0703125, 0.0810546875, 0.10546875, 0.0419921875, 0.2216796875, 0.008544921875, 0.0341796875, 0.10351...
fe67fd7c-9346-5572-801c-cc882e646b97
22,319
0
Title: How to send out email at a user's local time in .NET / Sql Server? I am writing a program that needs to send out an email every hour on the hour, but at a time local to the user. Say I have 2 users in different time zones. John is in New York and Fred is in Los Angeles. The server is in Chicago. If I want to ...
190
197
[ ".net", "sql" ]
[ "sql", ".net", "sql-server", "timezone" ]
{"accepted_answer_id":22693,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T13:22:31.050000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","sql"],"last_activity_date":"2016-08-03T16:25:55.810000+00:00","last_edit_date":"2016-08-03T16:25:55.810000+...
[ 0.00501251220703125, -0.01055908203125, 0.01238250732421875, -0.0069580078125, 0.0017251968383789062, 0.020172119140625, -0.0195770263671875, 0.030670166015625, 0.0034503936767578125, -0.01947021484375, 0.006191253662109375, -0.021942138671875, 0.0240631103515625, -0.0283050537109375, -0...
[ 5, 6, 10, 18, 23, 41, 47, 71, 83, 99, 116, 136, 159, 169, 201, 248, 305, 361, 617, 765, 903, 1179, 1181, 1284, 1528, 1733, 1810, 2356, 3340, 3444, 3731, 4000, 4127, 4677, 4939, 5753, 5773, 7198, 10723, 11249, 11435, 11814, 11907, ...
[ 0.027587890625, 0.026123046875, 0.01416015625, 0.00341796875, 0.04052734375, 0.023681640625, 0.0693359375, 0.00048828125, 0.0152587890625, 0.1474609375, 0.0625, 0.0166015625, 0.00439453125, 0.0810546875, 0.109375, 0.0247802734375, 0.138671875, 0.09765625, 0.1279296875, 0.010009...
1abcb59e-8eb1-59c0-9393-7711eb434127
22,474
0
Title: How do I display records containing specific information in SQl How do I select all records that contain "LCS" within the title column in sql.
35
39
[ "sql" ]
[ "sql", "sql-server" ]
{"accepted_answer_id":22476,"answer_count":3,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T14:21:47.460000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2008-10-08T22:37:41.453000+00:00","last_edit_date":"2008-10-08T22:37:41.453000+00:00",...
[ 0.006031036376953125, -0.03607177734375, -0.004924774169921875, -0.0230560302734375, -0.004150390625, 0.01468658447265625, 0.002613067626953125, -0.0173187255859375, -0.017913818359375, -0.006420135498046875, -0.03656005859375, 0.026153564453125, 0.035125732421875, -0.0003676414489746094, ...
[ 12, 23, 54, 87, 91, 141, 159, 214, 294, 316, 756, 2737, 3365, 4677, 11249, 26943, 28032, 29458, 36849, 44116, 44759, 48962, 70541, 99247, 115923 ]
[ 0.00634765625, 0.036865234375, 0.00146484375, 0.023681640625, 0.061767578125, 0.0947265625, 0.0255126953125, 0.029541015625, 0.197265625, 0.09375, 0.053955078125, 0.119140625, 0.0849609375, 0.140625, 0.030517578125, 0.1630859375, 0.0673828125, 0.1484375, 0.1640625, 0.16015625, ...
af9106c6-2659-55dc-9e65-151b7e4cf3d1
22,570
0
Title: What's a good way to check if two datetimes are on the same calendar day in TSQL? Here is the issue I am having: I have a large query that needs to compare datetimes in the where clause to see if two dates are on the same day. My current solution, which sucks, is to send the datetimes into a UDF to convert them...
650
712
[ "sql" ]
[ "sql", "sql-server", "t-sql", "datetime", "user-defined-functions" ]
{"accepted_answer_id":22592,"answer_count":8,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T14:53:47.710000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2010-07-22T11:21:02.210000+00:00","last_edit_date":"2010-07-22T11:21:02.210000+00:00",...
[ 0.034027099609375, -0.02142333984375, 0.00040912628173828125, 0.01154327392578125, 0.032623291015625, 0.0197601318359375, 0.0026187896728515625, 0.002246856689453125, 0.0148162841796875, -0.01470184326171875, 0.004314422607421875, -0.0015096664428710938, 0.01166534423828125, -0.01916503906...
[ 7, 41, 47, 71, 98, 104, 106, 166, 285, 345, 384, 420, 509, 532, 621, 757, 837, 903, 959, 997, 1143, 1239, 1294, 1405, 1515, 1733, 1774, 1957, 2174, 2264, 2271, 2965, 3240, 3564, 3871, 3917, 3934, 3957, 4000, 4028, 4122, 4127, 4420, ...
[ 0.005859375, 0.078125, 0.06640625, 0.002197265625, 0.07958984375, 0.0201416015625, 0.00048828125, 0.07421875, 0.011962890625, 0.06640625, 0.109375, 0.046142578125, 0.049560546875, 0.006103515625, 0.023193359375, 0.0947265625, 0.119140625, 0.004150390625, 0.0849609375, 0.0329589...
fa8180ab-4369-52e2-a269-35fb4b1ce81f
22,696
0
Title: How to filter by 2 fields when loading data into an access database table from an excel spreadsheet OK, here is my problem, without being too specific for reasons of being fired for putting company practices on the internet. There are spreadsheets made. These are uploaded to the database. I need to filter out...
190
206
[ "sql" ]
[ "sql", "ms-access" ]
{"accepted_answer_id":null,"answer_count":7,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T15:44:39.820000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2019-01-22T19:44:44.400000+00:00","last_edit_date":"2019-01-22T19:44:44.400000+00:00",...
[ 0.03936767578125, -0.016693115234375, -0.01251983642578125, -0.0226593017578125, 0.021697998046875, 0.007213592529296875, -0.004024505615234375, -0.00870513916015625, 0.0034885406494140625, 0.0159759521484375, -0.0199127197265625, 0.0212249755859375, 0.00287628173828125, -0.007095336914062...
[ 7, 8, 18, 47, 54, 67, 100, 116, 126, 136, 214, 390, 831, 944, 959, 1295, 1614, 1632, 1636, 1810, 1820, 2053, 2967, 3871, 3917, 3934, 4734, 5701, 6538, 6626, 6863, 7228, 7816, 7831, 7941, 8110, 9077, 9381, 11249, 11476, 11782, 11907, ...
[ 0.0419921875, 0.0126953125, 0.038330078125, 0.025146484375, 0.051025390625, 0.087890625, 0.01708984375, 0.1962890625, 0.001708984375, 0.0247802734375, 0.02392578125, 0.185546875, 0.028076171875, 0.0732421875, 0.05908203125, 0.0703125, 0.1181640625, 0.1298828125, 0.09912109375, ...
28505856-b15a-5c59-a41e-cd8e2d31ed48
22,807
0
Title: Comparing effective dates in SQL Wondering if there is a better why in the WHERE clause of choosing records when you need to look at effective start and end dates? Currently this how I've done it in the past on MS SQL Server. Just worried about the date and not the time. I'm using SQL Server 2005. AND Conve...
154
166
[ "sql" ]
[ "sql", "sql-server", "date", "sql-server-2005" ]
{"accepted_answer_id":null,"answer_count":5,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T16:35:19.027000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-08-03T15:59:26.013000+00:00","last_edit_date":"2016-08-03T15:59:26.013000+00:00",...
[ 0.0281982421875, -0.031890869140625, 0.007167816162109375, -0.024505615234375, 0.03472900390625, 0.0233154296875, -0.0233154296875, 0.01385498046875, 0.01088714599609375, -0.0235595703125, -0.0159454345703125, 0.0228424072265625, 0.01195526123046875, -0.00725555419921875, 0.0101699829101...
[ 13, 23, 28, 98, 99, 136, 214, 254, 601, 647, 841, 903, 959, 977, 1657, 1733, 3564, 3642, 3871, 4034, 4902, 5622, 6032, 6713, 9254, 11015, 11522, 11549, 15400, 16265, 16940, 17368, 17489, 20779, 21027, 22687, 30096, 35652, 48762, 48962, ...
[ 0.05908203125, 0.068359375, 0.0068359375, 0.000244140625, 0.0595703125, 0.109375, 0.06787109375, 0.08984375, 0.0537109375, 0.0029296875, 0.1123046875, 0.0279541015625, 0.00146484375, 0.03955078125, 0.055908203125, 0.1103515625, 0.1552734375, 0.04833984375, 0.0419921875, 0.16113...
f765552c-b861-5e7b-8c96-9ef8242b32a5
22,901
0
Title: What is the best way to communicate with a MySQL server? I am going to be using C/C++, and would like to know the best way to talk to a MySQL server. Should I use the library that comes with the server installation? Are they any good libraries I should consider other than the official one?
66
72
[ "c", "c++", "sql" ]
[ "c++", "sql", "mysql", "c", "database" ]
{"accepted_answer_id":23145,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":"2025-07-28T05:55:29.310000+00:00","creation_date":"2008-08-22T17:09:04.920000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["c","c++","sql"],"last_activity_date":"2012-10-18T21:25:57.030000+00:00","last_edit_da...
[ 0.0021209716796875, -0.021240234375, -0.0079498291015625, -0.02325439453125, 0.01352691650390625, -0.03558349609375, -0.007030487060546875, 0.0088958740234375, 0.0141143798828125, 0.005870819091796875, -0.03582763671875, 0.0151824951171875, 0.034881591796875, -0.005664825439453125, 0.018...
[ 10, 47, 64, 67, 70, 83, 313, 441, 678, 1294, 1884, 2965, 3714, 3917, 4127, 4527, 4865, 10484, 10723, 16916, 17368, 22120, 32497, 35773, 37223, 51521, 59720, 127219, 157146 ]
[ 0.040283203125, 0.1533203125, 0.078125, 0.0869140625, 0.041015625, 0.0029296875, 0.08154296875, 0.03173828125, 0.1396484375, 0.0927734375, 0.0157470703125, 0.1298828125, 0.0164794921875, 0.06884765625, 0.0223388671875, 0.06298828125, 0.010986328125, 0.072265625, 0.166015625, 0....
bafd9ad7-b3ff-5f1b-a382-a5b836bb0476
22,907
0
Title: Which is better: Ad hoc queries or stored procedures? Assuming you can't use LINQ for whatever reason, is it a better practice to place your queries in stored procedures, or is it just as good a practice to execute ad hoc queries against the database (say, SQL Server for argument's sake)?
66
79
[ "sql" ]
[ "sql", "stored-procedures" ]
{"accepted_answer_id":22970,"answer_count":22,"chunk_count":1,"chunk_index":0,"closed_date":"2011-10-07T16:11:24.543000+00:00","creation_date":"2008-08-22T17:10:30.440000+00:00","has_accepted_answer":true,"is_closed":true,"languages":["sql"],"last_activity_date":"2018-10-21T03:50:58.390000+00:00","last_edit_date":"2018...
[ 0.00518798828125, -0.028533935546875, 0.00701141357421875, -0.0114898681640625, 0.0167999267578125, -0.018524169921875, -0.005680084228515625, 0.0140228271484375, 0.01210784912109375, 0.0201263427734375, -0.05731201171875, 0.017913818359375, -0.005157470703125, 0.0164337158203125, 0.0035...
[ 18, 23, 41, 71, 237, 606, 707, 831, 2737, 3145, 3687, 4127, 4343, 4527, 8589, 10484, 10750, 11522, 22687, 26548, 41361, 46610, 48962, 50491, 63399, 66596, 71924, 72018, 80866 ]
[ 0.04345703125, 0.038330078125, 0.1611328125, 0.16015625, 0.02294921875, 0.107421875, 0.007080078125, 0.05859375, 0.169921875, 0.1201171875, 0.07421875, 0.12109375, 0.2177734375, 0.0228271484375, 0.2216796875, 0.1455078125, 0.181640625, 0.16796875, 0.07861328125, 0.1298828125, ...
f8523d28-ca0c-52ab-872b-6057f1ad152b
22,935
0
Title: CSV (or sheet in XLS) to SQL create (and insert) statements with .Net? Does anyone have a technique for generating SQL table create (and data insert) commands pragmatically from a CSV (or sheet in a .xls) file? I've got a third party database system which I'd like to populate with data from a csv file (or sh...
145
169
[ ".net", "sql" ]
[ ".net", "sql", "csv", "xls" ]
{"accepted_answer_id":22948,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T17:19:24.130000+00:00","has_accepted_answer":true,"is_closed":false,"languages":[".net","sql"],"last_activity_date":"2013-09-23T11:03:57.353000+00:00","last_edit_date":null,"question_id":22935,"sc...
[ -0.0204315185546875, -0.0167999267578125, -0.003490447998046875, 0.0018434524536132812, 0.009735107421875, -0.01511383056640625, -0.009490966796875, -0.0108795166015625, 0.0012998580932617188, 0.040863037109375, -0.0268402099609375, 0.004505157470703125, -0.0019121170043945312, -0.03335571...
[ 5, 7, 23, 47, 56, 294, 313, 316, 334, 678, 765, 831, 1022, 1295, 1884, 1916, 2053, 2940, 3365, 5426, 8080, 9433, 11408, 11435, 12663, 19085, 20763, 23180, 24447, 24927, 27623, 28282, 35672, 43486, 43523, 45646, 48962, 50960, 51646, 61353,...
[ 0.015380859375, 0.0927734375, 0.0177001953125, 0.068359375, 0.0286865234375, 0.1025390625, 0.0947265625, 0.046630859375, 0.1943359375, 0.0986328125, 0.020751953125, 0.01953125, 0.064453125, 0.0810546875, 0.05126953125, 0.003173828125, 0.1044921875, 0.047607421875, 0.0419921875, ...
d16fcf4e-3b29-54f5-a786-d583acf0c521
23,399
0
Title: Is it better to structure an SQL table to have a match, or return no result I've got an interesting design question. I'm designing the security side of our project, to allow us to have different versions of the program for different costs and also to allow Manager-type users to grant or deny access to parts of ...
279
298
[ "sql" ]
[ "sql", "sql-server", "optimization" ]
{"accepted_answer_id":23432,"answer_count":4,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-22T20:28:38.887000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2016-08-10T18:48:40.313000+00:00","last_edit_date":"2016-08-10T18:48:40.313000+00:00",...
[ 0.0196075439453125, -0.00534820556640625, 0.0027332305908203125, -0.010162353515625, -0.0018339157104492188, -0.00534820556640625, 0.004367828369140625, 0.0197296142578125, -0.0025691986083984375, -0.01806640625, -0.044189453125, 0.007160186767578125, 0.0220947265625, 0.01194000244140625, ...
[ 8, 10, 41, 47, 62, 64, 93, 100, 110, 262, 299, 316, 335, 707, 765, 959, 1528, 2071, 3365, 4331, 4343, 4657, 4677, 4734, 4785, 5423, 5609, 5941, 6226, 6626, 7086, 8781, 9655, 10617, 10723, 11001, 11343, 11389, 11522, 12638, 12921, 1345...
[ 0.1240234375, 0.0654296875, 0.0233154296875, 0.04345703125, 0.06005859375, 0.027099609375, 0.1513671875, 0.033935546875, 0.1494140625, 0.146484375, 0.1767578125, 0.0654296875, 0.07177734375, 0.046875, 0.1005859375, 0.00439453125, 0.034912109375, 0.006591796875, 0.09521484375, 0...
84f7a855-740a-5c4b-a1f8-f35e8a06dd47
24,168
0
Title: Why are relational set-based queries better than cursors? When writing database queries in something like TSQL or PLSQL, we often have a choice of iterating over rows with a cursor to accomplish the task, or crafting a single SQL statement that does the same job all at once. Also, we have the choice of simply...
131
148
[ "sql" ]
[ "sql", "language-agnostic", "database-cursor" ]
{"accepted_answer_id":null,"answer_count":11,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-23T12:04:48.700000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["sql"],"last_activity_date":"2021-12-22T22:36:43.940000+00:00","last_edit_date":"2021-12-22T22:36:43.940000+00:00"...
[ 0.004669189453125, -0.00957489013671875, -0.0009889602661132812, 0.005115509033203125, 0.017730712890625, -0.0297393798828125, -0.00856781005859375, 0.0008921623229980469, 0.0234375, 0.02581787109375, -0.043792724609375, 0.023193359375, 0.0023651123046875, 0.00832366943359375, 0.01248931...
[ 6, 10, 41, 42, 67, 83, 289, 384, 390, 442, 621, 645, 678, 2053, 3501, 3934, 4127, 4295, 4420, 4527, 4904, 5423, 5701, 9433, 10484, 11001, 11522, 12447, 13810, 15555, 24145, 27781, 27983, 29806, 32562, 33106, 38415, 41911, 41925, 44084, ...
[ 0.01171875, 0.017822265625, 0.1767578125, 0.1591796875, 0.1201171875, 0.0152587890625, 0.125, 0.061767578125, 0.010986328125, 0.006103515625, 0.021728515625, 0.1083984375, 0.050537109375, 0.059326171875, 0.07373046875, 0.024169921875, 0.03271484375, 0.1357421875, 0.023681640625, ...
1c8decca-66bd-5c17-8a83-f6c7182ec3da
24,200
0
Title: What's the fastest way to bulk insert a lot of data in SQL Server (C# client) I am hitting some performance bottlenecks with my C# client inserting bulk data into a SQL Server 2005 database and I'm looking for ways in which to speed up the process. I am already using the SqlClient.SqlBulkCopy (which is based ...
579
654
[ "c#", "sql" ]
[ "c#", "sql", "sql-server", "sql-server-2005" ]
{"accepted_answer_id":null,"answer_count":9,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-23T12:53:09.520000+00:00","has_accepted_answer":false,"is_closed":false,"languages":["c#","sql"],"last_activity_date":"2022-07-18T10:14:58.810000+00:00","last_edit_date":"2013-06-10T16:35:17.160000+00...
[ -0.006580352783203125, -0.0181732177734375, 0.003261566162109375, 0.03399658203125, 0.02679443359375, -0.00336456298828125, -0.01983642578125, 0.00472259521484375, 0.0321044921875, 0.0273895263671875, -0.02490234375, 0.01268768310546875, 0.0175933837890625, -0.0284423828125, 0.0106811523...
[ 5, 23, 33, 41, 73, 86, 92, 111, 150, 209, 351, 384, 479, 525, 669, 678, 756, 757, 836, 944, 1257, 1286, 1294, 1439, 1733, 1884, 1916, 2053, 2517, 2668, 2816, 3555, 3917, 3934, 4000, 4078, 4271, 4288, 4358, 4865, 4904, 5161, 5201, ...
[ 0.004638671875, 0.000732421875, 0.0162353515625, 0.011474609375, 0.0247802734375, 0.0458984375, 0.1318359375, 0.011474609375, 0.0859375, 0.012451171875, 0.007080078125, 0.07666015625, 0.031494140625, 0.111328125, 0.035400390625, 0.012451171875, 0.030029296875, 0.044921875, 0.0830...
1cdabce8-1a72-50c9-8d3b-24d50bffdb0e
24,467
0
Title: (N)Hibernate Auto-Join I'm developing a web- application using NHibernate. Can you tell me how to write a NHibernate Query for the following SQL query: SELECT v1.Id FROM VIEW v1 LEFT JOIN VIEW v2 ON v1.SourceView = v2.Id ORDER BY v1.Position It's basically a auto-join but I don't know how to write this in N...
108
131
[ "sql" ]
[ "sql", "nhibernate", "orm" ]
{"accepted_answer_id":26282,"answer_count":1,"chunk_count":1,"chunk_index":0,"closed_date":null,"creation_date":"2008-08-23T18:31:02.187000+00:00","has_accepted_answer":true,"is_closed":false,"languages":["sql"],"last_activity_date":"2012-01-03T19:14:35.387000+00:00","last_edit_date":"2012-01-03T19:14:35.387000+00:00",...
[ 0.0301513671875, 0.0025882720947265625, 0.00879669189453125, -0.034454345703125, 0.0283660888671875, 0.00957489013671875, 0.0112457275390625, 0.032318115234375, -0.00939178466796875, -0.0037250518798828125, -0.0181884765625, 0.001735687255859375, 0.00490570068359375, 0.0223846435546875, ...
[ 9, 23, 41, 53, 67, 71, 73, 81, 172, 304, 316, 418, 513, 568, 839, 903, 1294, 1467, 1809, 2182, 2566, 3365, 3642, 3714, 4171, 4396, 4688, 5442, 5701, 6755, 7192, 8852, 14192, 16604, 17368, 18044, 20861, 21253, 23180, 25217, 25632, 2919...
[ 0.0257568359375, 0.0235595703125, 0.1279296875, 0.1083984375, 0.1845703125, 0.072265625, 0.14453125, 0.123046875, 0.034912109375, 0.04052734375, 0.04541015625, 0.026611328125, 0.1767578125, 0.01318359375, 0.1103515625, 0.0400390625, 0.0654296875, 0.04736328125, 0.2021484375, 0....